- fix buffer usage warning caused by using the wrong flag for glMapBuffer after switching to doing a plain memcpy

This commit is contained in:
Magnus Norddahl 2018-07-18 16:04:35 +02:00
parent e93d1e3ebc
commit 23c0f8f6ac
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}
//===========================================================================