Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/dlls/opengl32/wgl.c b/dlls/opengl32/wgl.c
- index 9255e34..01341ee 100644
- --- a/dlls/opengl32/wgl.c
- +++ b/dlls/opengl32/wgl.c
- @@ -1705,6 +1705,14 @@ static GLubyte *filter_extensions( const char *extensions )
- */
- const GLubyte * WINAPI glGetString( GLenum name )
- {
- + if (wglGetCurrentContext() == NULL) {
- + if (name == GL_VENDOR) {
- + return "NVIDIA Corporation";
- + } else {
- + return NULL;
- + }
- + }
- +
- const struct opengl_funcs *funcs = NtCurrentTeb()->glTable;
- const GLubyte *ret = funcs->gl.p_glGetString( name );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement