summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErik Kundiman <erik@megapahit.org>2023-09-11 14:01:58 +0800
committerErik Kundiman <erik@megapahit.org>2023-09-11 14:01:58 +0800
commit86af122855c4d88ebc45709c297ef9e439f9a43d (patch)
treed06a421c6630a94026bb5764ed7b11f1bfcb0dd2
parent08ec071991e1eed8f409319053c98c6406c51316 (diff)
Try not to use non portable glDrawBuffer
-rw-r--r--indra/llrender/llrendertarget.cpp3
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);
}