add display state

This commit is contained in:
2026-05-04 22:16:30 -05:00
parent 31cc186424
commit 6edcf75a0c
11 changed files with 120 additions and 21 deletions
-14
View File
@@ -8,20 +8,6 @@
#include "displaygl.h"
errorret_t displayOpenGLInit(void) {
glDisable(GL_CULL_FACE);
errorChain(errorGLCheck());
glEnable(GL_DEPTH_TEST);
errorChain(errorGLCheck());
glDepthFunc(GL_LEQUAL);
errorChain(errorGLCheck());
glClearDepth(1.0f);
errorChain(errorGLCheck());
glEnable(GL_BLEND);
errorChain(errorGLCheck());
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
errorChain(errorGLCheck());
glPixelStorei(GL_UNPACK_ALIGNMENT, 1);
errorChain(errorGLCheck());