Hi there!
I somehow managed to break the emulator, like it seems, since every shader I try to compile fails with this:
0(2) : error C0118: macros prefixed with 'GL_' are reserved
This happens with the samples provided by the SDK as well, and all my shaders run fine on my friends computer.
Since this does happen with the samples as well, you can be sure, that the problem isn't a makro prefixed with "GL_", because there isn't such a makro in the Cube-Sample, and neither in my code.
I'm on a NVidia GTX570, by the way.
Has anyone ever experienced something like this? Any help would be appreciated, I can't continue my project otherwise...
Wouldn't I be stuck on Android 4.3+ then? Like it seems that is the earliest version of Android which supports GLES3, so I'd rather want to be still using GLES2, right?
Or am I missing something here and GLES3 runs on all hardware which runs GLES2, maybe with a limited featureset?
Actually it's the other way around, GLES3 is a superset of GLES2, so all GLES3 compatible hardware will run GLES2. The GLES3 emulator will happily run your GLES2 content!
Thanks,
Chris
I've been trying the GLES3-Emulator, and I can confirm that the problem persists in this version, and I somehow can't get around it with changing it in via the Hex-Editor. One location of the #define GL_ES 1 seems to be somewhere else and I can't find it.
However, the problem is mostly the same, so you may want to get this sorted out
Here is the Errorlog of the GLES3-Emulator:
Vertex info
-----------
0(7) : error C0118: macros prefixed with 'GL_' are reserved
0(8) : error C0118: macros prefixed with 'GL_' are reserved
0(9) : error C0118: macros prefixed with 'GL_' are reserved
0(10) : error C0118: macros prefixed with 'GL_' are reserved
0(11) : error C0118: macros prefixed with 'GL_' are reserved
0(12) : error C0118: macros prefixed with 'GL_' are reserved
0(13) : error C0118: macros prefixed with 'GL_' are reserved
0(14) : error C0118: macros prefixed with 'GL_' are reserved
0(15) : error C0118: macros prefixed with 'GL_' are reserved
0(16) : error C0118: macros prefixed with 'GL_' are reserved
0(17) : error C0118: macros prefixed with 'GL_' are reserved
0(18) : error C0118: macros prefixed with 'GL_' are reserved
0(19) : error C0118: macros prefixed with 'GL_' are reserved
0(20) : error C0118: macros prefixed with 'GL_' are reserved
0(21) : error C0118: macros prefixed with 'GL_' are reserved
0(22) : error C0118: macros prefixed with 'GL_' are reserved
0(22) : warning C7101: Macro GL_OES_texture_3D redefined
0(23) : error C0118: macros prefixed with 'GL_' are reserved
0(24) : error C0118: macros prefixed with 'GL_' are reserved
0(25) : error C0118: macros prefixed with 'GL_' are reserved
0(26) : error C0118: macros prefixed with 'GL_' are reserved
0(27) : error C0118: macros prefixed with 'GL_' are reserved
0(28) : error C0118: macros prefixed with 'GL_' are reserved
0(29) : error C0118: macros prefixed with 'GL_' are reserved
0(30) : error C0118: macros prefixed with 'GL_' are reserved
0(30) : warning C7101: Macro GL_OES_standard_derivatives redefined
0(31) : error C0118: macros prefixed with 'GL_' are reserved
0(32) : error C0118: macros prefixed with 'GL_' are reserved
0(32) : warning C7101: Macro GL_OES_EGL_image_external redefined
0(33) : error C0118: macros prefixed with 'GL_' are reserved
0(34) : error C0118: macros prefixed with 'GL_' are reserved
Fragment info
-------------
Thanks for your help reporting this,
We've also reproduced this, after updating our nvidia drivers so it's unrelated to the CUDA SDK and is being provoked by a recent change in the nvidia driver. This will be fixed in an upcoming release. For now the work around is to use an older nvidia driver, or follow your steps with the hex editor for the GLES2 emulator.
Hi degenerated,
The workaround is - as Chris has already suggested - to use older NVIDIA Graphics Driver.
In my environment (NVIDIA NVS 300, Windows 7 64bit) the most recent driver that still works with OpenGL ES 3.0 Emulator v1.3.1 is 332.76.
Hope that helps,
Jacek