Call LLImageGL::initClass to avoid crash when calling LLFeatureManager::applyRecommendedSettings. (texauditing vectors must be allocated)
This commit is contained in:
@@ -1562,6 +1562,7 @@ LLViewerWindow::LLViewerWindow(
|
|||||||
LLVertexBuffer::initClass(gSavedSettings.getBOOL("RenderVBOEnable"), gSavedSettings.getBOOL("RenderVBOMappingDisable"));
|
LLVertexBuffer::initClass(gSavedSettings.getBOOL("RenderVBOEnable"), gSavedSettings.getBOOL("RenderVBOMappingDisable"));
|
||||||
LL_INFOS("RenderInit") << "LLVertexBuffer initialization done." << LL_ENDL ;
|
LL_INFOS("RenderInit") << "LLVertexBuffer initialization done." << LL_ENDL ;
|
||||||
gGL.init() ;
|
gGL.init() ;
|
||||||
|
LLImageGL::initClass(LLViewerTexture::MAX_GL_IMAGE_CATEGORY) ;
|
||||||
|
|
||||||
if (LLFeatureManager::getInstance()->isSafe()
|
if (LLFeatureManager::getInstance()->isSafe()
|
||||||
|| (gSavedSettings.getS32("LastFeatureVersion") != LLFeatureManager::getInstance()->getVersion())
|
|| (gSavedSettings.getS32("LastFeatureVersion") != LLFeatureManager::getInstance()->getVersion())
|
||||||
@@ -1586,7 +1587,6 @@ LLViewerWindow::LLViewerWindow(
|
|||||||
|
|
||||||
// Init the image list. Must happen after GL is initialized and before the images that
|
// Init the image list. Must happen after GL is initialized and before the images that
|
||||||
// LLViewerWindow needs are requested.
|
// LLViewerWindow needs are requested.
|
||||||
LLImageGL::initClass(LLViewerTexture::MAX_GL_IMAGE_CATEGORY) ;
|
|
||||||
gTextureList.init();
|
gTextureList.init();
|
||||||
LLViewerTextureManager::init() ;
|
LLViewerTextureManager::init() ;
|
||||||
gBumpImageList.init();
|
gBumpImageList.init();
|
||||||
|
|||||||
Reference in New Issue
Block a user