mirror of
https://github.com/ZDoom/Raze.git
synced 2025-06-02 10:11:04 +00:00
- some missed parts.
This commit is contained in:
parent
6536d910b3
commit
0359602159
5 changed files with 5 additions and 11 deletions
|
@ -65,7 +65,7 @@ bool glsurface_initialize(vec2_t bufferResolution)
|
|||
buffer = Xaligned_alloc(16, bufferRes.x * bufferRes.y);
|
||||
|
||||
glActiveTexture(GL_TEXTURE0);
|
||||
glGenTextures(1, &bufferTexID);
|
||||
GetTextureHandle(&bufferTexID);
|
||||
glBindTexture(GL_TEXTURE_2D, bufferTexID);
|
||||
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_BASE_LEVEL, 0);
|
||||
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAX_LEVEL, 0);
|
||||
|
@ -172,7 +172,7 @@ void glsurface_setPalette(void* pPalette)
|
|||
}
|
||||
else
|
||||
{
|
||||
glGenTextures(1, &paletteTexID);
|
||||
GetTextureHandle(&paletteTexID);
|
||||
glBindTexture(GL_TEXTURE_2D, paletteTexID);
|
||||
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_BASE_LEVEL, 0);
|
||||
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAX_LEVEL, 0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue