summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorHiroshi Ogawa <hi.ogawa.zz@gmail.com>2017-10-09 09:18:32 +0900
committerHiroshi Ogawa <hi.ogawa.zz@gmail.com>2017-10-09 09:18:32 +0900
commit2c966493c5f5375f01767ef9a864355a02e4703c (patch)
tree4011efab3424fee3d5d3a3739d290f7893e09b26 /drivers
parentdc6bb74c4638be6989dcb042895af9c75682f0c5 (diff)
Fix front face definition
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gles3/rasterizer_scene_gles3.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gles3/rasterizer_scene_gles3.cpp b/drivers/gles3/rasterizer_scene_gles3.cpp
index eaf0b06664..e549d3acbe 100644
--- a/drivers/gles3/rasterizer_scene_gles3.cpp
+++ b/drivers/gles3/rasterizer_scene_gles3.cpp
@@ -2140,7 +2140,6 @@ void RasterizerSceneGLES3::_render_list(RenderList::Element **p_elements, int p_
first = false;
}
- glFrontFace(GL_CW);
glBindVertexArray(0);
state.scene_shader.set_conditional(SceneShaderGLES3::USE_INSTANCING, false);
@@ -5024,6 +5023,8 @@ void RasterizerSceneGLES3::initialize() {
}
state.debug_draw = VS::VIEWPORT_DEBUG_DRAW_DISABLED;
+
+ glFrontFace(GL_CW);
}
void RasterizerSceneGLES3::iteration() {