diff options
author | Erik Kundiman <erik@megapahit.org> | 2023-09-11 14:01:58 +0800 |
---|---|---|
committer | Erik Kundiman <erik@megapahit.org> | 2023-09-11 14:01:58 +0800 |
commit | 86af122855c4d88ebc45709c297ef9e439f9a43d (patch) | |
tree | d06a421c6630a94026bb5764ed7b11f1bfcb0dd2 /indra/llrender/llrendertarget.cpp | |
parent | 08ec071991e1eed8f409319053c98c6406c51316 (diff) |
Try not to use non portable glDrawBuffer
Diffstat (limited to 'indra/llrender/llrendertarget.cpp')
-rw-r--r-- | indra/llrender/llrendertarget.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/indra/llrender/llrendertarget.cpp b/indra/llrender/llrendertarget.cpp index 6144342c86..ffe028c087 100644 --- a/indra/llrender/llrendertarget.cpp +++ b/indra/llrender/llrendertarget.cpp @@ -430,7 +430,8 @@ void LLRenderTarget::bindTarget() if (mTex.empty()) { //no color buffer to draw to - glDrawBuffer(GL_NONE); + GLenum drawbuffers[] = {GL_NONE}; + glDrawBuffers(0, drawbuffers); glReadBuffer(GL_NONE); } |