only create opengl context once per window

fixes issues on intel and improves performance
This commit is contained in:
FunkyFr3sh 2024-07-22 09:02:31 +02:00
parent 4b5ded46f1
commit e3b81f8250
4 changed files with 81 additions and 30 deletions

View file

@ -9,6 +9,8 @@
typedef struct OGLRENDERER
{
HWND hwnd;
HDC hdc;
HGLRC context;
GLuint main_program;
GLuint shader1_program;
@ -42,5 +44,7 @@ typedef struct OGLRENDERER
} OGLRENDERER;
DWORD WINAPI ogl_render_main(void);
BOOL ogl_create();
BOOL ogl_release();
#endif