Skip to content

Commit

Permalink
persist opengl multisampling parameters in configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
jonof committed Oct 23, 2022
1 parent 4ab4cb7 commit d36ca82
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion jfbuild
6 changes: 6 additions & 0 deletions src/config.c
Original file line number Diff line number Diff line change
Expand Up @@ -615,6 +615,9 @@ int32 CONFIG_ReadSetup( void )
#if USE_POLYMOST && USE_OPENGL
SCRIPT_GetNumber( scripthandle, "Screen Setup", "GLTextureMode", &gltexfiltermode);
SCRIPT_GetNumber( scripthandle, "Screen Setup", "GLAnisotropy", &glanisotropy);
SCRIPT_GetNumber( scripthandle, "Screen Setup", "GLMultisample", &glmultisample);
SCRIPT_GetNumber( scripthandle, "Screen Setup", "GLMultisampleNvidia", &glnvmultisamplehint);
SCRIPT_GetNumber( scripthandle, "Screen Setup", "GLSupersample", &glsampleshading);
SCRIPT_GetNumber( scripthandle, "Screen Setup", "GLUseTextureCompr", &glusetexcompr);
SCRIPT_GetNumber( scripthandle, "Screen Setup", "GLUseCompressedTextureCache", &glusetexcache);
#endif
Expand Down Expand Up @@ -704,6 +707,9 @@ void CONFIG_WriteSetup( void )
#if USE_POLYMOST && USE_OPENGL
SCRIPT_PutNumber( scripthandle, "Screen Setup", "GLTextureMode",gltexfiltermode,false,false);
SCRIPT_PutNumber( scripthandle, "Screen Setup", "GLAnisotropy",glanisotropy,false,false);
SCRIPT_PutNumber( scripthandle, "Screen Setup", "GLMultisample",glmultisample,false,false);
SCRIPT_PutNumber( scripthandle, "Screen Setup", "GLMultisampleNvidia",glnvmultisamplehint,false,false);
SCRIPT_PutNumber( scripthandle, "Screen Setup", "GLSupersample",glsampleshading,false,false);
SCRIPT_PutNumber( scripthandle, "Screen Setup", "GLUseTextureCompr",glusetexcompr,false,false);
SCRIPT_PutNumber( scripthandle, "Screen Setup", "GLUseCompressedTextureCache", glusetexcache,false,false);
#endif
Expand Down

0 comments on commit d36ca82

Please sign in to comment.