mirror of https://github.com/PCSX2/pcsx2.git
gsdx-ogl: try to avoid crash on fglrx windows
This commit is contained in:
parent
f0182f9a66
commit
b12eb45bb7
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue