Restore gl1 implementation

This commit is contained in:
Shinovon 2026-05-01 19:50:02 +05:00
parent af4ab6f1ac
commit cbc14ed824
10 changed files with 293 additions and 449 deletions

View file

@ -484,7 +484,7 @@ Texture::streamReadNative(Stream *stream)
return gl3::readNativeTexture(stream);
#ifdef RW_GLES1
if(platform == PLATFORM_GLES1){
//return gles1::readNativeTexture(stream);
return gles1::readNativeTexture(stream);
}
#endif
assert(0 && "unsupported platform");
@ -506,7 +506,7 @@ Texture::streamWriteNative(Stream *stream)
gl3::writeNativeTexture(this, stream);
#ifdef RW_GLES1
else if(this->raster->platform == PLATFORM_GLES1){
//gles1::writeNativeTexture(this, stream);
gles1::writeNativeTexture(this, stream);
}
#endif
else
@ -528,7 +528,7 @@ Texture::streamGetSizeNative(void)
return gl3::getSizeNativeTexture(this);
#ifdef RW_GLES1
if(this->raster->platform == PLATFORM_GLES1){
//return gles1::getSizeNativeTexture(this);
return gles1::getSizeNativeTexture(this);
}
#endif
assert(0 && "unsupported platform");