Stub GLES 1.1 backend

This commit is contained in:
Shinovon 2026-05-01 11:27:14 +05:00
parent f6a5685de8
commit feefe2e742
28 changed files with 272 additions and 31 deletions

View file

@ -481,6 +481,10 @@ Texture::streamReadNative(Stream *stream)
return xbox::readNativeTexture(stream);
if(platform == PLATFORM_GL3)
return gl3::readNativeTexture(stream);
#ifdef RW_GLES1
// if(platform == PLATFORM_GLES1) // TODO
// return gles1::readNativeTexture(stream);
#endif
assert(0 && "unsupported platform");
return nil;
}
@ -498,6 +502,10 @@ Texture::streamWriteNative(Stream *stream)
xbox::writeNativeTexture(this, stream);
else if(this->raster->platform == PLATFORM_GL3)
gl3::writeNativeTexture(this, stream);
#ifdef RW_GLES1
// else if(this->raster->platform == PLATFORM_GLES1)
// gles1::writeNativeTexture(this, stream);
#endif
else
assert(0 && "unsupported platform");
}
@ -515,6 +523,10 @@ Texture::streamGetSizeNative(void)
return xbox::getSizeNativeTexture(this);
if(this->raster->platform == PLATFORM_GL3)
return gl3::getSizeNativeTexture(this);
#ifdef RW_GLES1
// if(this->raster->platform == PLATFORM_GLES1)
// return gles1::getSizeNativeTexture(this);
#endif
assert(0 && "unsupported platform");
return 0;
}