Commits

ecsv  committed 4bd92ad

Fix invalid test for failed SDL_GL_GetProcAddress

glx for example never returns NULL for glXGetProcAddress [1] and therefore
test for a bogus function name is not working with SDL_GL_GetProcAddress

[1] http://dri.freedesktop.org/wiki/glXGetProcAddressNeverReturnsNULL/

  • Participants
  • Parent commits 199f6d6

Comments (0)

Files changed (1)

File sdl2/test/video_test.py

         procaddr = video.SDL_GL_GetProcAddress(b"glGetString")
         self.assertTrue(procaddr is not None and int(procaddr) != 0)
 
-        procaddr = video.SDL_GL_GetProcAddress(b"glForWhackoPeople")
-        self.assertIsNone(procaddr)
-
         video.SDL_GL_DeleteContext(ctx)
         video.SDL_DestroyWindow(window)
         video.SDL_GL_UnloadLibrary()