mirror of
https://github.com/glfw/glfw.git
synced 2024-11-22 18:15:10 +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);
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user