changed camtex format

This commit is contained in:
aap 2020-04-26 21:51:33 +02:00
parent bae891fdd9
commit 0c940480f0

View File

@ -80,13 +80,13 @@ rasterCreateCameraTexture(Raster *raster)
Gl3Raster *natras = PLUGINOFFSET(Gl3Raster, raster, nativeRasterOffset);
switch(raster->format & 0xF00){
case Raster::C8888:
default:
natras->internalFormat = GL_RGBA;
natras->format = GL_RGBA;
natras->type = GL_UNSIGNED_BYTE;
natras->hasAlpha = 1;
break;
case Raster::C888:
default:
natras->internalFormat = GL_RGB;
natras->format = GL_RGB;
natras->type = GL_UNSIGNED_BYTE;