Store palette data in PVR ram

This commit is contained in:
Luke Benstead 2019-03-03 18:49:06 +00:00
parent f349cd1b49
commit d12032c961

View File

@ -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;