GSdx-ogl: Fix GSdx crashing on Intel igpus

Regression was introduced in #1954
GSdx caused the emulator to crash when the renderer was restarted.

It may have affected older gpus from nvidia/amd
with older OpenGL support as well.
This commit is contained in:
lightningterror 2017-09-05 21:16:28 +02:00 committed by Gregory Hainaut
parent 91d8e7c7c6
commit f14c78cf12
1 changed files with 9 additions and 7 deletions

View File

@ -454,17 +454,19 @@ namespace GLLoader {
"Check out the link below for further information.\n"
"https://github.com/PCSX2/pcsx2/wiki/OpenGL-and-Intel-GPUs-All-you-need-to-know\n");
}
}
if (!found_GL_ARB_viewport_array) {
if (!found_GL_ARB_viewport_array) {
glScissorIndexed = ReplaceGL::ScissorIndexed;
glViewportIndexedf = ReplaceGL::ViewportIndexedf;
if (s_first_load)
fprintf(stderr, "GL_ARB_viewport_array is not supported! Function pointer will be replaced\n");
glScissorIndexed = ReplaceGL::ScissorIndexed;
glViewportIndexedf = ReplaceGL::ViewportIndexedf;
}
}
if (!found_GL_ARB_texture_barrier) {
if (!found_GL_ARB_texture_barrier) {
glTextureBarrier = ReplaceGL::TextureBarrier;
if (s_first_load)
fprintf(stderr, "GL_ARB_texture_barrier is not supported! Blending emulation will not be supported\n");
glTextureBarrier = ReplaceGL::TextureBarrier;
}
}
#ifdef _WIN32