fix: changed android defines

This commit is contained in:
2021-11-04 17:42:31 +01:00
parent a3712febca
commit 95e9c270db
9 changed files with 46 additions and 11 deletions

View File

@@ -12,7 +12,7 @@
#include <glm/gtc/type_ptr.hpp>
#ifdef ANDROID
#ifdef __ANDROID__
#include <android/log.h>
#endif
@@ -116,7 +116,7 @@ int ShaderProgram::loadShader(const std::string& source, GLenum type) {
char error[size];
glGetShaderInfoLog(shaderID, size, &size, error);
std::cout << error << std::endl;
#ifdef ANDROID
#ifdef __ANDROID__
__android_log_print(ANDROID_LOG_ERROR, "TRACKERS", "Could not compile shader !\n %s", error);
#endif
}