From 23c0f8f6acface9218d94e499fac9e527cd6eaa8 Mon Sep 17 00:00:00 2001 From: Magnus Norddahl Date: Wed, 18 Jul 2018 16:04:35 +0200 Subject: [PATCH] - fix buffer usage warning caused by using the wrong flag for glMapBuffer after switching to doing a plain memcpy --- src/gl/textures/gl_hwtexture.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gl/textures/gl_hwtexture.cpp b/src/gl/textures/gl_hwtexture.cpp index 3401f15c81..03a31a2e1f 100644 --- a/src/gl/textures/gl_hwtexture.cpp +++ b/src/gl/textures/gl_hwtexture.cpp @@ -305,7 +305,7 @@ void FHardwareTexture::AllocateBuffer(int w, int h, int texelsize) uint8_t *FHardwareTexture::MapBuffer() { glBindBuffer(GL_PIXEL_UNPACK_BUFFER, glBufferID); - return (uint8_t*)glMapBuffer(GL_PIXEL_UNPACK_BUFFER, GL_READ_WRITE); + return (uint8_t*)glMapBuffer(GL_PIXEL_UNPACK_BUFFER, GL_WRITE_ONLY); } //===========================================================================