Skip to content

Commit

Permalink
fix: gl33 example
Browse files Browse the repository at this point in the history
  • Loading branch information
lesleyrs committed Aug 13, 2024
1 parent e068aa5 commit dbd73ee
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 4 additions & 4 deletions RGFW.h
Original file line number Diff line number Diff line change
Expand Up @@ -1866,17 +1866,17 @@ void RGFW_updateLockState(RGFW_window* win, b8 capital, b8 numlock) {
b8 RGFW_profile = RGFW_GL_CORE;

#ifndef RGFW_EGL
i32 RGFW_STENCIL = 8, RGFW_SAMPLES = 4, RGFW_STEREO = GL_FALSE, RGFW_AUX_BUFFERS = 0, RGFW_DOUBLE_BUFFER = 1;
i32 RGFW_STENCIL = 8, RGFW_SAMPLES = 4, RGFW_STEREO = 0, RGFW_AUX_BUFFERS = 0, RGFW_DOUBLE_BUFFER = 1;
#else
i32 RGFW_STENCIL = 0, RGFW_SAMPLES = 0, RGFW_STEREO = GL_FALSE, RGFW_AUX_BUFFERS = 0, RGFW_DOUBLE_BUFFER = 1;
i32 RGFW_STENCIL = 0, RGFW_SAMPLES = 0, RGFW_STEREO = 0, RGFW_AUX_BUFFERS = 0, RGFW_DOUBLE_BUFFER = 1;
#endif


void RGFW_setGLStencil(i32 stencil) { RGFW_STENCIL = stencil; }
void RGFW_setGLSamples(i32 samples) { RGFW_SAMPLES = samples; }
void RGFW_setGLStereo(i32 stereo) { RGFW_STEREO = stereo; }
void RGFW_setGLAuxBuffers(i32 auxBuffers) { RGFW_AUX_BUFFERS = auxBuffers; }
void RGFW_setDoubleBuffer(b8 useDoubleBuffer) { RGFW_DOUBLE_BUFFER = useDoubleBuffer; }
void RGFW_setDoubleBuffer(b8 useDoubleBuffer) { RGFW_DOUBLE_BUFFER = useDoubleBuffer; }

void RGFW_setGLVersion(b8 profile, i32 major, i32 minor) {
RGFW_profile = profile;
Expand All @@ -1891,7 +1891,7 @@ void RGFW_updateLockState(RGFW_window* win, b8 capital, b8 numlock) {

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

RGFW_window_close(dummy);

Expand Down
1 change: 1 addition & 0 deletions examples/gl33/gl33.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

#ifdef _WIN32
#define WIN32_LEAN_AND_MEAN
#define OEMRESOURCE
#include <windows.h>
#endif

Expand Down

0 comments on commit dbd73ee

Please sign in to comment.