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();
|
Emulate_DSA::Init();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (gl_BindTextureUnit == NULL) {
|
||||||
|
fprintf(stderr, "FATAL ERROR !!!! Failed to setup DSA function pointer!!!\n");
|
||||||
|
status = false;
|
||||||
|
}
|
||||||
|
|
||||||
fprintf(stderr, "\n");
|
fprintf(stderr, "\n");
|
||||||
|
|
||||||
return status;
|
return status;
|
||||||
|
|
|
@ -405,6 +405,9 @@ extern PFNGLTEXTUREBARRIERPROC gl_TextureBarrier;
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
namespace Emulate_DSA {
|
||||||
|
extern void Init();
|
||||||
|
}
|
||||||
|
|
||||||
namespace GLLoader {
|
namespace GLLoader {
|
||||||
bool check_gl_version(uint32 major, uint32 minor);
|
bool check_gl_version(uint32 major, uint32 minor);
|
||||||
|
|
|
@ -147,5 +147,9 @@ void GSWndGL::PopulateGlFunction()
|
||||||
*(void**)&(gl_ClipControl) = GetProcAddress("glClipControl", true);
|
*(void**)&(gl_ClipControl) = GetProcAddress("glClipControl", true);
|
||||||
*(void**)&(gl_TextureBarrier) = GetProcAddress("glTextureBarrier", true);
|
*(void**)&(gl_TextureBarrier) = GetProcAddress("glTextureBarrier", true);
|
||||||
|
|
||||||
|
if (gl_CreateFramebuffers == NULL) {
|
||||||
|
Emulate_DSA::Init();
|
||||||
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue