summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/OGL/Render.cpp
diff options
context:
space:
mode:
authorRyan Houdek <Sonicadvance1@gmail.com>2014-01-01 16:02:18 -0600
committerdegasus <wickmarkus@web.de>2014-01-17 16:05:34 +0100
commitf308b878b2a15a588ccb0bf792fe7c8d5acde3d7 (patch)
tree14312334da5076f08e9c53a1f9e5ef4ff04b15cc /Source/Core/VideoBackends/OGL/Render.cpp
parentcfb8b43b4a40b1ac33c1c3a5b3482eeb69bc5bf8 (diff)
[GLExtensions] Oops. Don't just outright disable these helper functions.
Diffstat (limited to 'Source/Core/VideoBackends/OGL/Render.cpp')
-rw-r--r--Source/Core/VideoBackends/OGL/Render.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/Source/Core/VideoBackends/OGL/Render.cpp b/Source/Core/VideoBackends/OGL/Render.cpp
index 166068e034..45fb3d1d33 100644
--- a/Source/Core/VideoBackends/OGL/Render.cpp
+++ b/Source/Core/VideoBackends/OGL/Render.cpp
@@ -238,14 +238,16 @@ void GLAPIENTRY ErrorCallback( GLenum source, GLenum type, GLuint id, GLenum sev
}
// Two small Fallbacks to avoid GL_ARB_ES2_compatibility
+#ifndef USE_GLES3
void GLAPIENTRY DepthRangef(GLfloat neardepth, GLfloat fardepth)
{
- //glDepthRange(neardepth, fardepth);
+ glDepthRange(neardepth, fardepth);
}
void GLAPIENTRY ClearDepthf(GLfloat depthval)
{
- //glClearDepth(depthval);
+ glClearDepth(depthval);
}
+#endif
void InitDriverInfo()
{
@@ -435,12 +437,13 @@ Renderer::Renderer()
// OpenGL 3 doesn't provide GLES like float functions for depth.
// They are in core in OpenGL 4.1, so almost every driver should support them.
// But for the oldest ones, we provide fallbacks to the old double functions.
+#ifndef USE_GLES3
if (!GLExtensions::Supports("GL_ARB_ES2_compatibility") && GLInterface->GetMode() == GLInterfaceMode::MODE_OPENGL)
{
glDepthRangef = DepthRangef;
glClearDepthf = ClearDepthf;
}
-
+#endif
g_Config.backend_info.bSupportsDualSourceBlend = GLExtensions::Supports("GL_ARB_blend_func_extended");
g_Config.backend_info.bSupportsGLSLUBO = GLExtensions::Supports("GL_ARB_uniform_buffer_object") && !DriverDetails::HasBug(DriverDetails::BUG_ANNIHILATEDUBOS);
g_Config.backend_info.bSupportsPrimitiveRestart = (GLExtensions::Version() >= 310) || GLExtensions::Supports("GL_NV_primitive_restart");