| commit | dd4c8631343f8df63375a3b6d09998c0ff65bd62 | [log] [tgz] |
|---|---|---|
| author | Nicolas Capens <capn@google.com> | Tue Jul 31 15:33:28 2018 -0400 |
| committer | Nicolas Capens <nicolascapens@google.com> | Thu Aug 02 14:36:02 2018 +0000 |
| tree | 5455542ff0a23d9087619f36e302a3e7f07f3097 | |
| parent | 9e22c542d6be9bdc4066a224264b9d3a1fb73018 [diff] [blame] |
Fix gl_FrontFacing to take GL_FRONT_FACE into account. Bug swiftshader:113 Change-Id: Ia1cbcdbb396eaabaa79e4c8651d7c025f73d028a Reviewed-on: https://swiftshader-review.googlesource.com/20068 Reviewed-by: Alexis Hétu <sugoi@google.com> Tested-by: Nicolas Capens <nicolascapens@google.com>
diff --git a/src/OpenGL/libGLES_CM/Device.cpp b/src/OpenGL/libGLES_CM/Device.cpp index d1c3a04..4df82e5 100644 --- a/src/OpenGL/libGLES_CM/Device.cpp +++ b/src/OpenGL/libGLES_CM/Device.cpp
@@ -46,7 +46,7 @@ setAlphaTestEnable(false); setSourceBlendFactor(BLEND_ONE); setDestBlendFactor(BLEND_ZERO); - setCullMode(CULL_COUNTERCLOCKWISE); + setCullMode(CULL_COUNTERCLOCKWISE, true); setDepthCompare(DEPTH_LESSEQUAL); setAlphaReference(0.0f); setAlphaCompare(ALPHA_ALWAYS);