0
\$\begingroup\$

the generated window resolution is (1334, 750) when i call glViewport(0, 0, 1334, 750); the whole window is filled, but when i call glViewport(0, 0, 1334 / 2, 750); the result is as bottom:

enter image description here

the proportion is obviously wrong, anyone know what happened?

\$\endgroup\$
1
  • \$\begingroup\$ You might need to adjust the projection matrix for the expected aspect ratio. \$\endgroup\$ – tomasantunes Apr 27 at 14:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.