GLContext: remove setSize() and set glViewport() in Display::onReshape()
This commit is contained in:
parent
60333f6d02
commit
c1f1dd75bd
6 changed files with 8 additions and 33 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue