From 9106f2c42022e27e762e583e0bdeb1aa8554cc1d Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Thu, 6 Nov 2025 17:41:01 -0600 Subject: [PATCH] Disable the depth and stencil buffers We don't have any need for either in our renderers. --- app/streaming/session.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/streaming/session.cpp b/app/streaming/session.cpp index ef65cca7..5f36ed71 100644 --- a/app/streaming/session.cpp +++ b/app/streaming/session.cpp @@ -1838,6 +1838,10 @@ void Session::execInternal() SDL_GL_SetAttribute(SDL_GL_GREEN_SIZE, 8); SDL_GL_SetAttribute(SDL_GL_BLUE_SIZE, 8); + // Disable depth and stencil buffers + SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 0); + SDL_GL_SetAttribute(SDL_GL_STENCIL_SIZE, 0); + // We always want a resizable window with High DPI enabled Uint32 defaultWindowFlags = SDL_WINDOW_ALLOW_HIGHDPI | SDL_WINDOW_RESIZABLE;