Fix: OpenGL changes of Nuklear
This commit is contained in:
@@ -72,8 +72,13 @@ window_t init_window(unsigned int width, unsigned int height, const char *title)
|
||||
|
||||
void use_window(window_t window) { glfwMakeContextCurrent((void *)window); }
|
||||
|
||||
extern int window_width, window_height;
|
||||
|
||||
int is_open_window(window_t window)
|
||||
{
|
||||
/* Restore window proportions if Nuklear breaks it */
|
||||
__window_callback_input((GLFWwindow *)window, window_width, window_height);
|
||||
|
||||
glfwSwapBuffers((void *)window);
|
||||
glfwPollEvents();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user