mirror of
https://github.com/glfw/glfw.git
synced 2024-11-10 00:51:47 +00:00
Fixed particles example on Retina displays.
This commit is contained in:
parent
08b3af4387
commit
7935a366f4
@ -986,11 +986,11 @@ int main(int argc, char** argv)
|
||||
glfwMakeContextCurrent(window);
|
||||
glfwSwapInterval(1);
|
||||
|
||||
glfwSetWindowSizeCallback(window, resize_callback);
|
||||
glfwSetFramebufferSizeCallback(window, resize_callback);
|
||||
glfwSetKeyCallback(window, key_callback);
|
||||
|
||||
// Set initial aspect ratio
|
||||
glfwGetWindowSize(window, &width, &height);
|
||||
glfwGetFramebufferSize(window, &width, &height);
|
||||
resize_callback(window, width, height);
|
||||
|
||||
// Upload particle texture
|
||||
|
Loading…
Reference in New Issue
Block a user