1
0
Fork 0

GLContext: remove setSize() and set glViewport() in Display::onReshape()

This commit is contained in:
Henrik Hautakoski 2023-08-02 22:30:45 +02:00
parent 60333f6d02
commit c1f1dd75bd
6 changed files with 8 additions and 33 deletions

View file

@ -149,13 +149,6 @@ bool Win32GLContext::setSwapInterval(int interval)
return wglSwapIntervalEXT(interval);
}
void Win32GLContext::setSize(unsigned int width, unsigned int height)
{
if (activate()) {
glViewport(0, 0, width, height);
}
}
void Win32GLContext::swapBuffers()
{
if (m_deviceContext) {