changes to librw layer, GLES now runtime choice

This commit is contained in:
aap
2020-11-18 10:27:55 +01:00
parent b58a54527e
commit 82b0103c67
30 changed files with 563 additions and 181 deletions

View File

@ -935,16 +935,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;
}