HurricanGame / Hurrican

Freeware jump and shoot game created by Poke53280, based on the Turrican game series by Manfred Trenz
62 stars 22 forks source link

added a #undef to remove the warning #57

Closed Mia75owo closed 1 year ago

Mia75owo commented 1 year ago

This removes a warning when building for GLES. (redefinition of glClearDepth) I dont know if this is the right approach to this but it works.

drfiemost commented 1 year ago

Related to #48

This would interfere with libepoxy definitions, you should at least change the define as following: #define glClearDepth epoxy_glClearDepthf but it doesn't look like a robust solution...

drfiemost commented 1 year ago

Hmm, glClearDepth is only referenced one time in DX8Graphics.cpp https://github.com/HurricanGame/Hurrican/blob/d116d107da51b8b8f2f0e8e2dd6154a300c08032/Hurrican/src/DX8Graphics.cpp#L375 it would be better to move the ifdef condition there and drop the define altogether.