mirror of
https://gitlab.com/shinovon/re3-symbian.git
synced 2026-05-23 01:57:21 +03:00
Stub GLES 1.1 backend
This commit is contained in:
parent
f6a5685de8
commit
feefe2e742
28 changed files with 272 additions and 31 deletions
12
vendor/librw/src/texture.cpp
vendored
12
vendor/librw/src/texture.cpp
vendored
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue