The OpenGL wrapper now handles context change
Fixed some bugs Thanks to Raakz Former-commit-id: f156ba7aa3307cccd83c9c02987dadad02cd8185
This commit is contained in:
@@ -59,7 +59,7 @@ bool NzRenderWindow::CopyToImage(NzImage* image) const
|
||||
}
|
||||
#endif
|
||||
|
||||
const NzContext* currentContext = NzContext::GetCurrent();
|
||||
NzContext* currentContext = NzContext::GetCurrent();
|
||||
if (m_context != currentContext)
|
||||
{
|
||||
if (!m_context->SetActive(true))
|
||||
@@ -112,7 +112,7 @@ bool NzRenderWindow::CopyToTexture(NzTexture* texture) const
|
||||
}
|
||||
#endif
|
||||
|
||||
const NzContext* currentContext = NzContext::GetCurrent();
|
||||
NzContext* currentContext = NzContext::GetCurrent();
|
||||
if (m_context != currentContext)
|
||||
{
|
||||
if (!m_context->SetActive(true))
|
||||
|
||||
Reference in New Issue
Block a user