changes to librw layer, GLES now runtime choice

This commit is contained in:
aap
2020-11-18 10:32:18 +01:00
parent 448c56647f
commit 8c70c2a136
30 changed files with 568 additions and 182 deletions

View File

@ -936,16 +936,3 @@ RtCharset *RtCharsetSetColors(RtCharset * charSet, const RwRGBA * foreGround,
RtCharset *RtCharsetGetDesc(RtCharset * charset, RtCharsetDesc * desc) { *desc = charset->desc; return charset; }
RtCharset *RtCharsetCreate(const RwRGBA * foreGround, const RwRGBA * backGround) { return Charset::create(foreGround, backGround); }
RwBool RtCharsetDestroy(RtCharset * charSet) { charSet->destroy(); return true; }
// fake shit
RwInt32 _rwD3D8FindCorrectRasterFormat(RwRasterType type, RwInt32 flags)
{
#ifdef RW_GL3
if(flags & (rwRASTERFORMATPAL8 | rwRASTERFORMAT8888))
return 'NOPE';
return 'YUP';
#endif
return flags & 0xF00;
}