mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-10 06:42:12 +00:00
- fix buffer usage warning caused by using the wrong flag for glMapBuffer after switching to doing a plain memcpy
This commit is contained in:
parent
e93d1e3ebc
commit
23c0f8f6ac
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
|
|
Loading…
Reference in a new issue