summaryrefslogtreecommitdiff
path: root/drivers/gles2
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2019-01-14 11:24:00 -0300
committerJuan Linietsky <reduzio@gmail.com>2019-01-14 11:24:00 -0300
commit6d8083ea656d1dce5c00257f308e464d1d8feae2 (patch)
tree50a985fc98bb942311087d4ad7b15624d29d4dd5 /drivers/gles2
parentae99530a8d15bc1cc88ff764e701aaa67855641b (diff)
Do not use the workaround for desktop nvidia on mobile and html5.
Diffstat (limited to 'drivers/gles2')
-rw-r--r--drivers/gles2/rasterizer_canvas_gles2.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gles2/rasterizer_canvas_gles2.cpp b/drivers/gles2/rasterizer_canvas_gles2.cpp
index d54d6e9eee..daa547252f 100644
--- a/drivers/gles2/rasterizer_canvas_gles2.cpp
+++ b/drivers/gles2/rasterizer_canvas_gles2.cpp
@@ -456,7 +456,8 @@ void RasterizerCanvasGLES2::_canvas_item_render_commands(Item *p_item, Item *cur
glDisableVertexAttribArray(VS::ARRAY_COLOR);
glVertexAttrib4fv(VS::ARRAY_COLOR, r->modulate.components);
-#if 1
+//use a more compatible workaround, as this does not fail on nvidia
+#ifdef GLES_OVER_GL
//more compatible
state.canvas_shader.set_conditional(CanvasShaderGLES2::USE_TEXTURE_RECT, false);