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