ps2 raster creation basically done

This commit is contained in:
aap
2017-08-19 23:09:45 +02:00
parent 75435b8934
commit 8e277cbe9c
5 changed files with 261 additions and 86 deletions

View File

@@ -820,7 +820,7 @@ Texture::upload(void)
switch(r->format & 0xF00){
case Raster::C8888:
glTexImage2D(GL_TEXTURE_2D, 0, 4, r->width, r->height,
0, GL_RGBA, GL_UNSIGNED_BYTE, r->texels);
0, GL_RGBA, GL_UNSIGNED_BYTE, r->pixels);
break;
default:
printf("unsupported raster format: %x\n", r->format);