Commit de021c8
authored
Fix glfw crashes when passing null for optional output arguments of some functions (#11157)
Do not write output values when optional output pointer is null for calls of following functions:
glfwGetFramebufferSize (width/height)
glfwGetWindowSize (width/height)
glfwGetWindowPos (x/y)
This is in pair with native GLFW 3.2 implementation and documentation for these functions.1 parent 5532b9e commit de021c8
2 files changed
+23
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
471 | 471 | | |
472 | 472 | | |
473 | 473 | | |
| 474 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
916 | 916 | | |
917 | 917 | | |
918 | 918 | | |
919 | | - | |
920 | | - | |
| 919 | + | |
| 920 | + | |
| 921 | + | |
| 922 | + | |
| 923 | + | |
| 924 | + | |
| 925 | + | |
921 | 926 | | |
922 | 927 | | |
923 | 928 | | |
| |||
937 | 942 | | |
938 | 943 | | |
939 | 944 | | |
940 | | - | |
941 | | - | |
| 945 | + | |
| 946 | + | |
| 947 | + | |
| 948 | + | |
| 949 | + | |
| 950 | + | |
| 951 | + | |
942 | 952 | | |
943 | 953 | | |
944 | 954 | | |
| |||
1331 | 1341 | | |
1332 | 1342 | | |
1333 | 1343 | | |
1334 | | - | |
1335 | | - | |
1336 | | - | |
| 1344 | + | |
| 1345 | + | |
| 1346 | + | |
| 1347 | + | |
| 1348 | + | |
| 1349 | + | |
| 1350 | + | |
| 1351 | + | |
1337 | 1352 | | |
1338 | 1353 | | |
1339 | 1354 | | |
| |||
0 commit comments