mirror of
https://github.com/lucaspalomodevelop/meshlab.git
synced 2026-03-13 00:07:24 +00:00
fix wrong condition gl extensions init in filter ao
This commit is contained in:
parent
3d51f694e0
commit
d143f29009
@ -30,6 +30,10 @@ void GLExtensionsManager::init()
|
||||
glewInitialized = false;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief initializes the GL extensions context, without thorwing any exception
|
||||
* @return true if the context has been correctly initializes, false otherwise
|
||||
*/
|
||||
bool GLExtensionsManager::initializeGLextensions_notThrowing()
|
||||
{
|
||||
GLenum err = GLEW_OK;
|
||||
@ -48,6 +52,10 @@ bool GLExtensionsManager::initializeGLextensions_notThrowing()
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief initializes the GL extensions context, thorwing a MLException if something
|
||||
* wrong happens during the initialization.
|
||||
*/
|
||||
void GLExtensionsManager::initializeGLextensions()
|
||||
{
|
||||
if (!glewInitialized) {
|
||||
|
||||
@ -378,7 +378,7 @@ void AmbientOcclusionPlugin::initGL(vcg::CallBackPos *cb, unsigned int numVertic
|
||||
{
|
||||
//******* INIT GLEW ********/
|
||||
cb(0, "Initializing: Glew and Hardware Capabilities");
|
||||
if (GLExtensionsManager::initializeGLextensions_notThrowing())
|
||||
if (!GLExtensionsManager::initializeGLextensions_notThrowing())
|
||||
{
|
||||
Log(GLLogStream::SYSTEM, "Error initializing OpenGL extensions");
|
||||
errInit = true;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user