sdlGlResetAttributes function

void sdlGlResetAttributes()

Reset all previously set OpenGL context attributes to their default values.

\threadsafety This function should only be called on the main thread.

\since This function is available since SDL 3.1.3.

\sa SDL_GL_GetAttribute \sa SDL_GL_SetAttribute

extern SDL_DECLSPEC void SDLCALL SDL_GL_ResetAttributes(void)

Implementation

void sdlGlResetAttributes() {
  final sdlGlResetAttributesLookupFunction =
      libSdl3.lookupFunction<Void Function(), void Function()>(
          'SDL_GL_ResetAttributes');
  return sdlGlResetAttributesLookupFunction();
}