Skip to content

Commit

Permalink
remove RGFW_getMaxGLVersion
Browse files Browse the repository at this point in the history
  • Loading branch information
ColleagueRiley committed Aug 13, 2024
1 parent 93b13ab commit c037c44
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions RGFW.h
Original file line number Diff line number Diff line change
Expand Up @@ -957,8 +957,6 @@ RGFWDEF void RGFW_window_setCPURender(RGFW_window* win, i8 set);

/*! native API functions */
#if defined(RGFW_OPENGL) || defined(RGFW_EGL)
/*! Get max OpenGL version */
RGFWDEF u8* RGFW_getMaxGLVersion(void);
/*! OpenGL init hints */
RGFWDEF void RGFW_setGLStencil(i32 stencil); /*!< set stencil buffer bit size (8 by default) */
RGFWDEF void RGFW_setGLSamples(i32 samples); /*!< set number of sampiling buffers (4 by default) */
Expand Down Expand Up @@ -1884,20 +1882,6 @@ void RGFW_updateLockState(RGFW_window* win, b8 capital, b8 numlock) {
RGFW_minorVersion = minor;
}

u8* RGFW_getMaxGLVersion(void) {
RGFW_window* dummy = RGFW_createWindow("dummy", RGFW_RECT(0, 0, 1, 1), 0);

const char* versionStr = (const char*) glGetString(GL_VERSION);

static u8 version[2];
version[0] = versionStr[0] - '0',
version[1] = versionStr[2] - '0';

RGFW_window_close(dummy);

return version;
}

/* OPENGL normal only (no EGL / OSMesa) */
#ifndef RGFW_EGL

Expand Down

0 comments on commit c037c44

Please sign in to comment.