From 3af64ddbb20e8ca6fc3f677d78d14300c7aaebce Mon Sep 17 00:00:00 2001 From: Phillip Stephens Date: Tue, 3 Nov 2015 14:15:37 -0800 Subject: [PATCH] Re-enable backface culling flag --- lib/graphicsdev/GL.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/graphicsdev/GL.cpp b/lib/graphicsdev/GL.cpp index c3d9085..eab584a 100644 --- a/lib/graphicsdev/GL.cpp +++ b/lib/graphicsdev/GL.cpp @@ -253,9 +253,9 @@ public: glDisable(GL_DEPTH_TEST); glDepthMask(m_depthWrite); -// if (m_backfaceCulling) -// glEnable(GL_CULL_FACE); -// else + if (m_backfaceCulling) + glEnable(GL_CULL_FACE); + else glDisable(GL_CULL_FACE); return m_prog; @@ -486,7 +486,7 @@ static const GLenum SEMANTIC_TYPE_TABLE[] = struct GLCommandQueue : IGraphicsCommandQueue { - Platform platform() const {return IGraphicsDataFactory::PlatformOGLES3;} + Platform platform() const {return IGraphicsDataFactory::PlatformOGL;} const char* platformName() const {return "OpenGL ES 3.0";} IGraphicsContext* m_parent = nullptr;