renderGL: setting to set settings to set stencil a

nd buffer size

it appears this may be the cause of visual glitches
This commit is contained in:
tildearrow 2025-03-30 15:13:39 -05:00
parent e9acf42f8a
commit f95336befe
4 changed files with 32 additions and 11 deletions

View file

@ -279,8 +279,10 @@ void FurnaceGUIRenderGL1::preInit(const DivConfig& conf) {
SDL_GL_SetAttribute(SDL_GL_ALPHA_SIZE,conf.getInt("glAlphaSize",0));
SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER,conf.getInt("glDoubleBuffer",1));
SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE,conf.getInt("glDepthSize",24));
SDL_GL_SetAttribute(SDL_GL_STENCIL_SIZE,conf.getInt("glStencilSize",0));
SDL_GL_SetAttribute(SDL_GL_BUFFER_SIZE,conf.getInt("glBufferSize",32));
if (conf.getInt("glSetBS",0)) {
SDL_GL_SetAttribute(SDL_GL_STENCIL_SIZE,conf.getInt("glStencilSize",0));
SDL_GL_SetAttribute(SDL_GL_BUFFER_SIZE,conf.getInt("glBufferSize",32));
}
}
#define LOAD_PROC_MANDATORY(_v,_t,_s) \