1
0
Fork 0
mirror of https://github.com/gwm17/glfw.git synced 2024-11-23 02:38:52 -05:00

Fixed particles example on Retina displays.

This commit is contained in:
Camilla Berglund 2015-06-12 03:13:23 +02:00
parent 08b3af4387
commit 7935a366f4

View File

@ -986,11 +986,11 @@ int main(int argc, char** argv)
glfwMakeContextCurrent(window); glfwMakeContextCurrent(window);
glfwSwapInterval(1); glfwSwapInterval(1);
glfwSetWindowSizeCallback(window, resize_callback); glfwSetFramebufferSizeCallback(window, resize_callback);
glfwSetKeyCallback(window, key_callback); glfwSetKeyCallback(window, key_callback);
// Set initial aspect ratio // Set initial aspect ratio
glfwGetWindowSize(window, &width, &height); glfwGetFramebufferSize(window, &width, &height);
resize_callback(window, width, height); resize_callback(window, width, height);
// Upload particle texture // Upload particle texture