fixes for some gl functions in window
This commit is contained in:
parent
6bd2d2b324
commit
ac46c9fc41
@ -155,10 +155,10 @@ class Window(object):
|
|||||||
self._glcontext = _SDL.SDL_GL_CreateContext(self._handle)
|
self._glcontext = _SDL.SDL_GL_CreateContext(self._handle)
|
||||||
return self._glcontext
|
return self._glcontext
|
||||||
|
|
||||||
def swap():
|
def swap(self):
|
||||||
_SDL.SDL_GL_SwapWindow(self._handle)
|
_SDL.SDL_GL_SwapWindow(self._handle)
|
||||||
|
|
||||||
def make_context_current():
|
def make_context_current(self):
|
||||||
errcheck(_SDL.SDL_GL_MakeCurrent(self._handle, self._glcontext))
|
errcheck(_SDL.SDL_GL_MakeCurrent(self._handle, self._glcontext))
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
Loading…
Reference in New Issue
Block a user