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
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue