diff options
author | Gilles Roudiere <gilles.roudiere@gmail.com> | 2017-10-11 11:02:43 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-11 11:02:43 +0200 |
commit | 45c878e3803c06361dfcad9d7a329ba12fc01570 (patch) | |
tree | 55c56deb417cd4607c4b6df4e3f499c82ac076a7 /drivers/gles3 | |
parent | da47f58b24daf7920b55dff19cbc484202f1ec37 (diff) | |
parent | 2c966493c5f5375f01767ef9a864355a02e4703c (diff) |
Merge pull request #11958 from hi-ogawa/fix-shadow-map-front-face
Fix front face definition
Diffstat (limited to 'drivers/gles3')
-rw-r--r-- | drivers/gles3/rasterizer_scene_gles3.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gles3/rasterizer_scene_gles3.cpp b/drivers/gles3/rasterizer_scene_gles3.cpp index 4c9d0f181e..ba8d490762 100644 --- a/drivers/gles3/rasterizer_scene_gles3.cpp +++ b/drivers/gles3/rasterizer_scene_gles3.cpp @@ -2142,7 +2142,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); @@ -5026,6 +5025,8 @@ void RasterizerSceneGLES3::initialize() { } state.debug_draw = VS::VIEWPORT_DEBUG_DRAW_DISABLED; + + glFrontFace(GL_CW); } void RasterizerSceneGLES3::iteration() { |