# using glew glviewport cannot get the correct proportion of a window

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:

the proportion is obviously wrong, anyone know what happened?

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