Don't use shaders for dynamic textures.... again.
This commit is contained in:
@@ -42,6 +42,7 @@
|
|||||||
#include "llvertexbuffer.h"
|
#include "llvertexbuffer.h"
|
||||||
#include "llviewerdisplay.h"
|
#include "llviewerdisplay.h"
|
||||||
#include "llrender.h"
|
#include "llrender.h"
|
||||||
|
#include "llglslshader.h"
|
||||||
|
|
||||||
// static
|
// static
|
||||||
LLViewerDynamicTexture::instance_list_t LLViewerDynamicTexture::sInstances[ LLViewerDynamicTexture::ORDER_COUNT ];
|
LLViewerDynamicTexture::instance_list_t LLViewerDynamicTexture::sInstances[ LLViewerDynamicTexture::ORDER_COUNT ];
|
||||||
@@ -210,6 +211,12 @@ BOOL LLViewerDynamicTexture::updateAllInstances()
|
|||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
LLGLSLShader::bindNoShader();
|
||||||
|
LLVertexBuffer::unbind();
|
||||||
|
|
||||||
|
bool no_ff = LLGLSLShader::sNoFixedFunction;
|
||||||
|
LLGLSLShader::sNoFixedFunction = false;
|
||||||
|
|
||||||
BOOL result = FALSE;
|
BOOL result = FALSE;
|
||||||
BOOL ret = FALSE ;
|
BOOL ret = FALSE ;
|
||||||
for( S32 order = 0; order < ORDER_COUNT; order++ )
|
for( S32 order = 0; order < ORDER_COUNT; order++ )
|
||||||
@@ -240,6 +247,8 @@ BOOL LLViewerDynamicTexture::updateAllInstances()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
LLGLSLShader::sNoFixedFunction = no_ff;
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user