diff --git a/client/renderers/opengl.c b/client/renderers/opengl.c index 0cba1912..93516efa 100644 --- a/client/renderers/opengl.c +++ b/client/renderers/opengl.c @@ -294,12 +294,6 @@ bool lgr_opengl_on_mouse_shape(void * opaque, const LG_RendererCursor cursor, co if (!this || !this->initialized) return false; - if (SDL_GL_MakeCurrent(this->params.window, this->glContext) != 0) - { - DEBUG_ERROR("Failed to make the GL context current"); - return false; - } - this->mouseType = cursor; switch(cursor) { @@ -440,12 +434,6 @@ bool lgr_opengl_on_frame_event(void * opaque, const uint8_t * data, bool resampl if (!this || !this->initialized) return false; - if (SDL_GL_MakeCurrent(this->params.window, this->glContext) != 0) - { - DEBUG_ERROR("Failed to make the GL context current"); - return false; - } - if (++this->texIndex == VBO_BUFFERS) this->texIndex = 0; @@ -593,12 +581,6 @@ bool lgr_opengl_render(void * opaque) if (!this || !this->initialized) return false; - if (SDL_GL_MakeCurrent(this->params.window, this->glContext) != 0) - { - DEBUG_ERROR("Failed to make the GL context current"); - return false; - } - if (this->resizeWindow) { // setup the projection matrix