Fix: OpenGL changes of Nuklear

This commit is contained in:
PedroEdiaz
2024-11-07 14:14:20 -06:00
parent 46869cbcde
commit 03796fdaff
3 changed files with 12 additions and 3 deletions

View File

@@ -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();