gsdx-ogl: try to avoid crash on fglrx windows

This commit is contained in:
Gregory Hainaut 2015-04-25 09:50:19 +02:00
parent f0182f9a66
commit b12eb45bb7
3 changed files with 12 additions and 0 deletions

View File

@ -379,6 +379,11 @@ namespace GLLoader {
Emulate_DSA::Init();
}
if (gl_BindTextureUnit == NULL) {
fprintf(stderr, "FATAL ERROR !!!! Failed to setup DSA function pointer!!!\n");
status = false;
}
fprintf(stderr, "\n");
return status;

View File

@ -405,6 +405,9 @@ extern PFNGLTEXTUREBARRIERPROC gl_TextureBarrier;
#endif
namespace Emulate_DSA {
extern void Init();
}
namespace GLLoader {
bool check_gl_version(uint32 major, uint32 minor);

View File

@ -147,5 +147,9 @@ void GSWndGL::PopulateGlFunction()
*(void**)&(gl_ClipControl) = GetProcAddress("glClipControl", true);
*(void**)&(gl_TextureBarrier) = GetProcAddress("glTextureBarrier", true);
if (gl_CreateFramebuffers == NULL) {
Emulate_DSA::Init();
}
#endif
}