mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-11 15:22:15 +00:00
- detect gl es shaders and request them
This commit is contained in:
parent
85a9984807
commit
b1e1f25218
1 changed files with 4 additions and 1 deletions
|
@ -216,7 +216,10 @@ FString FShaderProgram::PatchShader(ShaderType type, const FString &code, const
|
||||||
FString patchedCode;
|
FString patchedCode;
|
||||||
|
|
||||||
int shaderVersion = MIN((int)round(gl.glslversion * 10) * 10, maxGlslVersion);
|
int shaderVersion = MIN((int)round(gl.glslversion * 10) * 10, maxGlslVersion);
|
||||||
patchedCode.AppendFormat("#version %d\n", shaderVersion);
|
if (gl.es)
|
||||||
|
patchedCode.AppendFormat("#version %d es\n", shaderVersion);
|
||||||
|
else
|
||||||
|
patchedCode.AppendFormat("#version %d\n", shaderVersion);
|
||||||
|
|
||||||
// TODO: Find some way to add extension requirements to the patching
|
// TODO: Find some way to add extension requirements to the patching
|
||||||
//
|
//
|
||||||
|
|
Loading…
Reference in a new issue