cnlohr / rawdrawandroid

Build android apps without any java, entirely in C and Make
MIT License
3.55k stars 226 forks source link

Fix for Android 4.2 (API 17) #8

Closed sergpolkin closed 4 years ago

sergpolkin commented 4 years ago

Some changes for old android version. If You want maintain separate branch, or something like that.

Disable FULLSCREEN, disable SENSOR, in rawdraw/CNFGEGLDriver.c in config_attribute_list set EGL_OPENGL_ES2_BIT. Run on my phone, but up-left rectangle is black. In log complaint: [Mali Err]texture format check error!!!(format:0x1908, internalformat:0x8058, type:0x1401)

cnlohr commented 4 years ago

API 17!?!? WHAT ARE YOU RUNNING IT ON???

I've just manually fixed some of what you have into my build, correctly.

I've also added -DANDROIDVERSION=xx

So, in code we can

#if ANDROIDVERSION < 21

//Do stuff

#endif

Also, I recommend updating, and taking a look at things.

sergpolkin commented 4 years ago

Run perfect at 25fps! Great project, write on C for Android is cool

cnlohr commented 4 years ago

I am not able to follow your pull request. If you are interested in submitting, please rebase off of master. If your "run perfect at 25 fps" comment was in regard to the current master, that's OK too!! Just need to know. For now, though I will be closing this pull request.

I hope you had, and continue to have fun and eagerly look to accepting more work from other people.