Skip to content

Commit

Permalink
Update COpenGLDriver.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
sfan5 authored Oct 23, 2024
1 parent 40c496a commit 1b3d9ca
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions irr/src/COpenGLDriver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,10 @@ COpenGLDriver::COpenGLDriver(const SIrrlichtCreationParameters &params, io::IFil

bool COpenGLDriver::initDriver()
{
ContextManager->generateSurface();
ContextManager->generateContext();
if (!ContextManager->generateSurface())
return false;
if (!ContextManager->generateContext())
return false;
ExposedData = ContextManager->getContext();
ContextManager->activateContext(ExposedData, false);
GL.LoadAllProcedures(ContextManager);
Expand Down

0 comments on commit 1b3d9ca

Please sign in to comment.