Store palette data in PVR ram
This commit is contained in:
parent
f349cd1b49
commit
d12032c961
|
@ -224,7 +224,7 @@ void APIENTRY glDeleteTextures(GLsizei n, GLuint *textures) {
|
|||
}
|
||||
|
||||
if(txr->palette && txr->palette->data) {
|
||||
free(txr->palette->data);
|
||||
pvr_mem_free(txr->palette->data);
|
||||
txr->palette->data = NULL;
|
||||
}
|
||||
|
||||
|
@ -1005,11 +1005,11 @@ GLAPI void APIENTRY glColorTableEXT(GLenum target, GLenum internalFormat, GLsize
|
|||
}
|
||||
|
||||
if(target) {
|
||||
free(palette->data);
|
||||
pvr_mem_free(palette->data);
|
||||
palette->data = NULL;
|
||||
}
|
||||
|
||||
palette->data = (GLubyte*) malloc(width * 4);
|
||||
palette->data = (GLubyte*) pvr_mem_malloc(width * 4);
|
||||
palette->format = format;
|
||||
palette->width = width;
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user