only create opengl context once per window
fixes issues on intel and improves performance
This commit is contained in:
parent
4b5ded46f1
commit
e3b81f8250
4 changed files with 81 additions and 30 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue