mirror of
https://github.com/nzp-team/dquakeplus.git
synced 2025-02-16 16:41:03 +00:00
why not use vram too for clut4
This commit is contained in:
parent
eab5ddd082
commit
bd1b011139
1 changed files with 2 additions and 1 deletions
|
@ -3410,7 +3410,7 @@ int GL_LoadTexture4(const char *identifier, unsigned int width, unsigned int hei
|
|||
}
|
||||
|
||||
// Allocate the VRAM.
|
||||
//texture.vram = static_cast<texel*>(quake::vram::allocate(buffer_size));
|
||||
texture.vram = static_cast<texel*>(quake::vram::allocate(buffer_size));
|
||||
|
||||
// Upload the texture.
|
||||
GL_Upload4(texture_index, data, width, height);
|
||||
|
@ -3419,6 +3419,7 @@ int GL_LoadTexture4(const char *identifier, unsigned int width, unsigned int hei
|
|||
free(texture.ram);
|
||||
texture.ram = NULL;
|
||||
}
|
||||
|
||||
// Done.
|
||||
return texture_index;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue