diff options
author | Runitai Linden <davep@lindenlab.com> | 2022-01-19 10:35:58 -0600 |
---|---|---|
committer | Runitai Linden <davep@lindenlab.com> | 2022-01-19 10:35:58 -0600 |
commit | 1a440be5e1760ac95e9a1ef43e5c74b768726826 (patch) | |
tree | 5cb1d3bfd24c01f2b3b1d34c8524943a1e0dcdfe /indra/llrender/llrender.cpp | |
parent | 0da2ab228961f1e50c830121c37cfa77c431a980 (diff) |
SL-16653 Fix for some textures having incorrect texel colors after the first row (and add more paranoia checks on texture data).
Diffstat (limited to 'indra/llrender/llrender.cpp')
-rw-r--r-- | indra/llrender/llrender.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/indra/llrender/llrender.cpp b/indra/llrender/llrender.cpp index 3b46eef1b4..92d8e6193f 100644 --- a/indra/llrender/llrender.cpp +++ b/indra/llrender/llrender.cpp @@ -860,6 +860,14 @@ LLRender::~LLRender() void LLRender::init() { + glPixelStorei(GL_PACK_ALIGNMENT, 1); + glPixelStorei(GL_UNPACK_ALIGNMENT, 1); + + gGL.setSceneBlendType(LLRender::BT_ALPHA); + gGL.setAmbientLightColor(LLColor4::black); + + glCullFace(GL_BACK); + if (sGLCoreProfile && !LLVertexBuffer::sUseVAO) { //bind a dummy vertex array object so we're core profile compliant #ifdef GL_ARB_vertex_array_object |