mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-08 20:41:49 +00:00
fix: viewport size on toggle fullscreen
This commit is contained in:
parent
5990617803
commit
4362f1c912
1 changed files with 2 additions and 0 deletions
|
|
@ -19,6 +19,7 @@
|
|||
static debug::Logger logger("window");
|
||||
|
||||
static std::unordered_set<std::string> supported_gl_extensions;
|
||||
static void window_size_callback(GLFWwindow* window, int width, int height);
|
||||
|
||||
static void init_gl_extensions_list() {
|
||||
GLint numExtensions = 0;
|
||||
|
|
@ -430,6 +431,7 @@ public:
|
|||
settings->height.get(),
|
||||
GLFW_DONT_CARE
|
||||
);
|
||||
window_size_callback(window, settings->width.get(), settings->height.get());
|
||||
}
|
||||
|
||||
double xPos, yPos;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue