diff options
| author | degasus <wickmarkus@web.de> | 2014-10-10 00:06:29 +0200 |
|---|---|---|
| committer | Jules Blok <jules.blok@gmail.com> | 2014-11-23 14:22:22 +0100 |
| commit | 6670cacddcc6aacc17181409457c575c6539cace (patch) | |
| tree | 05e12bfabb147209b06193adbf980c5b39751e1f /Source/Core/VideoBackends/OGL/Render.cpp | |
| parent | 60e9301f40601a1a3d6546a37ea71f18a43f9b3b (diff) | |
use GL_TEXTURE_2D_ARRAY for most of our textures
Diffstat (limited to 'Source/Core/VideoBackends/OGL/Render.cpp')
| -rw-r--r-- | Source/Core/VideoBackends/OGL/Render.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Source/Core/VideoBackends/OGL/Render.cpp b/Source/Core/VideoBackends/OGL/Render.cpp index 3d21b6891c..91c1b0b572 100644 --- a/Source/Core/VideoBackends/OGL/Render.cpp +++ b/Source/Core/VideoBackends/OGL/Render.cpp @@ -206,6 +206,10 @@ static void GLAPIENTRY ClearDepthf(GLfloat depthval) { glClearDepth(depthval); } +static void GLAPIENTRY FramebufferTexture(GLenum target, GLenum attachment, GLuint texture, GLint level) +{ + glFramebufferTextureLayer(target, attachment, texture, level, 0); +} static void InitDriverInfo() { @@ -462,6 +466,11 @@ Renderer::Renderer() glClearDepthf = ClearDepthf; } + if (!(GLExtensions::Version() >= 320)) + { + glFramebufferTexture = FramebufferTexture; + } + g_Config.backend_info.bSupportsDualSourceBlend = GLExtensions::Supports("GL_ARB_blend_func_extended"); g_Config.backend_info.bSupportsPrimitiveRestart = !DriverDetails::HasBug(DriverDetails::BUG_PRIMITIVERESTART) && ((GLExtensions::Version() >= 310) || GLExtensions::Supports("GL_NV_primitive_restart")); |
