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

@ -189,19 +189,6 @@ bool GLXContext::setSwapInterval(int interval)
return false;
}
void GLXContext::setSize(unsigned int width, unsigned int height)
{
// TODO: Not GLX specific! move to generic GLContext class.
if (activate()) {
glViewport(0, 0, width, height);
}
}
void GLXContext::setSize(const Vector2u size)
{
setSize(size.x, size.y);
}
void GLXContext::swapBuffers()
{
glXSwapBuffers(Xlib::getDisplay(), m_win);