mirror of
https://gitlab.com/shinovon/re3-symbian.git
synced 2026-05-23 01:57:21 +03:00
Make gles1 stubs based on gl3 code
This commit is contained in:
parent
2c441fbede
commit
6d11126db6
13 changed files with 3595 additions and 155 deletions
13
vendor/librw/src/texture.cpp
vendored
13
vendor/librw/src/texture.cpp
vendored
|
|
@ -17,6 +17,7 @@
|
|||
#include "d3d/rwd3d9.h"
|
||||
#include "d3d/rwd3dimpl.h"
|
||||
#include "gl/rwgl3.h"
|
||||
#include "gles1/rwgles1.h"
|
||||
|
||||
#define PLUGIN_ID 0
|
||||
|
||||
|
|
@ -482,8 +483,8 @@ Texture::streamReadNative(Stream *stream)
|
|||
if(platform == PLATFORM_GL3)
|
||||
return gl3::readNativeTexture(stream);
|
||||
#ifdef RW_GLES1
|
||||
// if(platform == PLATFORM_GLES1) // TODO
|
||||
// return gles1::readNativeTexture(stream);
|
||||
if(platform == PLATFORM_GLES1)
|
||||
return gles1::readNativeTexture(stream);
|
||||
#endif
|
||||
assert(0 && "unsupported platform");
|
||||
return nil;
|
||||
|
|
@ -503,8 +504,8 @@ Texture::streamWriteNative(Stream *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);
|
||||
else if(this->raster->platform == PLATFORM_GLES1)
|
||||
gles1::writeNativeTexture(this, stream);
|
||||
#endif
|
||||
else
|
||||
assert(0 && "unsupported platform");
|
||||
|
|
@ -524,8 +525,8 @@ Texture::streamGetSizeNative(void)
|
|||
if(this->raster->platform == PLATFORM_GL3)
|
||||
return gl3::getSizeNativeTexture(this);
|
||||
#ifdef RW_GLES1
|
||||
// if(this->raster->platform == PLATFORM_GLES1)
|
||||
// return gles1::getSizeNativeTexture(this);
|
||||
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