Skip to content
Snippets Groups Projects
Commit f5c431aa authored by David Parks's avatar David Parks
Browse files

EXT-6276 Put in some gl flush calls to texture state functions.

parent 9aefe349
No related branches found
No related tags found
No related merge requests found
...@@ -387,6 +387,8 @@ void LLTexUnit::setTextureAddressMode(eTextureAddressMode mode) ...@@ -387,6 +387,8 @@ void LLTexUnit::setTextureAddressMode(eTextureAddressMode mode)
{ {
if (mIndex < 0 || mCurrTexture == 0) return; if (mIndex < 0 || mCurrTexture == 0) return;
gGL.flush();
activate(); activate();
glTexParameteri (sGLTextureType[mCurrTexType], GL_TEXTURE_WRAP_S, sGLAddressMode[mode]); glTexParameteri (sGLTextureType[mCurrTexType], GL_TEXTURE_WRAP_S, sGLAddressMode[mode]);
...@@ -401,6 +403,8 @@ void LLTexUnit::setTextureFilteringOption(LLTexUnit::eTextureFilterOptions optio ...@@ -401,6 +403,8 @@ void LLTexUnit::setTextureFilteringOption(LLTexUnit::eTextureFilterOptions optio
{ {
if (mIndex < 0 || mCurrTexture == 0) return; if (mIndex < 0 || mCurrTexture == 0) return;
gGL.flush();
if (option == TFO_POINT) if (option == TFO_POINT)
{ {
glTexParameteri(sGLTextureType[mCurrTexType], GL_TEXTURE_MAG_FILTER, GL_NEAREST); glTexParameteri(sGLTextureType[mCurrTexType], GL_TEXTURE_MAG_FILTER, GL_NEAREST);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment