De-hardcoding raster sizes.

This commit is contained in:
Rinnegatamante
2020-10-23 18:58:16 +02:00
parent 62c5aa6fc8
commit 611f451b16
2 changed files with 1 additions and 2 deletions
+1 -1
View File
@@ -1212,7 +1212,7 @@ rasterRenderFast(Raster *raster, int32 x, int32 y)
pParam.base, 0, 0, 960 * 4,
SCE_GXM_TRANSFER_FORMAT_U8U8U8_BGR,
SCE_GXM_TRANSFER_LINEAR,
(uint8_t*)vglGetTexDataPointer(GL_TEXTURE_2D) + 1023 * 1024 * 3, 0, 0, - 1024 * 3,
(uint8_t*)vglGetTexDataPointer(GL_TEXTURE_2D) + (dst->height - 1) * dst->stride, 0, 0, -dst->stride,
NULL, SCE_GXM_TRANSFER_FRAGMENT_SYNC, NULL);
glBindTexture(GL_TEXTURE_2D, boundTexture[0]);
return 1;
-1
View File
@@ -119,7 +119,6 @@ rasterCreateCameraTexture(Raster *raster)
}
#ifdef RW_GLES
// glReadPixels only supports GL_RGBA
natras->internalFormat = GL_RGB;
natras->format = GL_RGB;
natras->type = GL_UNSIGNED_BYTE;