From ef2aed1e4e614eeaaf3d9a72795aec74fce38e6c Mon Sep 17 00:00:00 2001 From: jp Date: Fri, 11 Mar 2016 06:48:22 +0100 Subject: [PATCH] [SDL2] Don't test Stereo Mode when setting STENCIL_SIZE --- Source/OpenTK/Platform/SDL2/Sdl2GraphicsContext.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/OpenTK/Platform/SDL2/Sdl2GraphicsContext.cs b/Source/OpenTK/Platform/SDL2/Sdl2GraphicsContext.cs index eb6f8ab7..4a78ae4f 100644 --- a/Source/OpenTK/Platform/SDL2/Sdl2GraphicsContext.cs +++ b/Source/OpenTK/Platform/SDL2/Sdl2GraphicsContext.cs @@ -230,7 +230,7 @@ namespace OpenTK.Platform.SDL2 if (mode.Stencil > 0) { - SDL.GL.SetAttribute(ContextAttribute.STENCIL_SIZE, mode.Stereo ? 1 : 0); + SDL.GL.SetAttribute(ContextAttribute.STENCIL_SIZE, 1); } if (mode.Stereo)