Advertisement
Xpander69

Wolf Wine Patch

May 25th, 2014
1,540
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.59 KB | None | 0 0
  1. diff --git a/dlls/opengl32/wgl.c b/dlls/opengl32/wgl.c
  2. index 9255e34..01341ee 100644
  3. --- a/dlls/opengl32/wgl.c
  4. +++ b/dlls/opengl32/wgl.c
  5. @@ -1705,6 +1705,14 @@ static GLubyte *filter_extensions( const char *extensions )
  6.   */
  7.  const GLubyte * WINAPI glGetString( GLenum name )
  8.  {
  9. +    if (wglGetCurrentContext() == NULL) {
  10. +        if (name == GL_VENDOR) {
  11. +            return "NVIDIA Corporation";
  12. +        } else {
  13. +            return NULL;
  14. +        }
  15. +    }
  16. +
  17.      const struct opengl_funcs *funcs = NtCurrentTeb()->glTable;
  18.      const GLubyte *ret = funcs->gl.p_glGetString( name );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement