Skip to content

Commit 7d90967

Browse files
committed
add flag to support using OpenGL ES 1.0 for embedded devices or platforms with older OpenGL versions like Emscripten.
1 parent 44d2e46 commit 7d90967

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

figuro/renderer/opengl/context.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ proc newContext*(
113113

114114
result.addMaskTexture()
115115

116-
when defined(emscripten):
116+
when defined(emscripten) or defined(useOpenGlEs):
117117
result.atlasShader = newShaderStatic("glsl/emscripten/atlas.vert", "glsl/emscripten/atlas.frag")
118118
result.maskShader = newShaderStatic("glsl/emscripten/atlas.vert", "glsl/emscripten/mask.frag")
119119
else:

0 commit comments

Comments
 (0)