iOS: Remove unnecessary const-trickery when passing QIOSContext to the window
Change-Id: I56b3873342c1572ea6a651027e8f1a684cbe2a5a Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@digia.com>
This commit is contained in:
parent
31a76b978b
commit
509697adc3
@ -108,12 +108,12 @@ void QIOSContext::swapBuffers(QPlatformSurface *surface)
|
||||
|
||||
GLuint QIOSContext::defaultFramebufferObject(QPlatformSurface *surface) const
|
||||
{
|
||||
return static_cast<QIOSWindow *>(surface)->framebufferObject(*const_cast<const QIOSContext*>(this));
|
||||
return static_cast<QIOSWindow *>(surface)->framebufferObject(*this);
|
||||
}
|
||||
|
||||
GLuint QIOSContext::defaultColorRenderbuffer(QPlatformSurface *surface) const
|
||||
{
|
||||
return static_cast<QIOSWindow *>(surface)->colorRenderbuffer(*const_cast<const QIOSContext*>(this));
|
||||
return static_cast<QIOSWindow *>(surface)->colorRenderbuffer(*this);
|
||||
}
|
||||
|
||||
QFunctionPointer QIOSContext::getProcAddress(const QByteArray& functionName)
|
||||
|
Loading…
Reference in New Issue
Block a user