mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-07 03:13:49 +00:00
Fix crash with GL_DEBUG enabled with mupen64plus API
Also, fix compiler warning
This commit is contained in:
parent
a221db45cd
commit
8f26645407
|
@ -41,6 +41,6 @@ namespace opengl {
|
||||||
|
|
||||||
private:
|
private:
|
||||||
std::vector<std::vector<std::shared_ptr<PoolObject>>> m_objectPool;
|
std::vector<std::vector<std::shared_ptr<PoolObject>>> m_objectPool;
|
||||||
std::vector<int> m_objectPoolIndex;
|
std::vector<unsigned int> m_objectPoolIndex;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1346,10 +1346,12 @@ namespace opengl {
|
||||||
|
|
||||||
m_shutdown = true;
|
m_shutdown = true;
|
||||||
|
|
||||||
|
#ifndef GL_DEBUG
|
||||||
if (m_threaded_wrapper) {
|
if (m_threaded_wrapper) {
|
||||||
m_condition.notify_all();
|
m_condition.notify_all();
|
||||||
m_commandExecutionThread.join();
|
m_commandExecutionThread.join();
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
m64p_error FunctionWrapper::CoreVideo_SetVideoMode(int screenWidth, int screenHeight, int bitsPerPixel, m64p_video_mode mode, m64p_video_flags flags)
|
m64p_error FunctionWrapper::CoreVideo_SetVideoMode(int screenWidth, int screenHeight, int bitsPerPixel, m64p_video_mode mode, m64p_video_flags flags)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user