From 5b1086e574c678293e58a82ea26781056dd91e7e Mon Sep 17 00:00:00 2001 From: Siavash Eliasi Date: Fri, 14 Feb 2020 21:17:01 +0330 Subject: [PATCH] Add support for SDL_GL_CONTEXT_NO_ERROR. Allows graphics drivers to run with reduced overhead. --- src/sdl2/video.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/sdl2/video.rs b/src/sdl2/video.rs index 8a6a6e63..2e3f4268 100644 --- a/src/sdl2/video.rs +++ b/src/sdl2/video.rs @@ -295,6 +295,9 @@ pub mod gl_attr { (SDL_GL_FRAMEBUFFER_SRGB_CAPABLE, set_framebuffer_srgb_compatible, framebuffer_srgb_compatible, bool, "requests sRGB capable visual; defaults to false (>= SDL 2.0.1)") + + (SDL_GL_CONTEXT_NO_ERROR, set_context_no_error, context_no_error, bool, + "disables OpenGL error checking; defaults to false (>= SDL 2.0.6)") } /// **Sets** the OpenGL context major and minor versions.