mirror of
https://github.com/MobileGL-Dev/MobileGlues.git
synced 2025-09-22 10:42:11 -04:00
misc(log): remove useless log
This commit is contained in:
parent
c4539fb9e9
commit
f2685fa2eb
@ -13,7 +13,7 @@
|
||||
#define DEBUG 0
|
||||
|
||||
void init_target_egl() {
|
||||
LOG_V("Initializing %s @ %s", RENDERERNAME, __FUNCTION__);
|
||||
LOG_D("Initializing %s @ %s", RENDERERNAME, __FUNCTION__);
|
||||
EGLDisplay eglDisplay = EGL_NO_DISPLAY;
|
||||
EGLSurface eglSurface = EGL_NO_SURFACE;
|
||||
EGLContext eglContext = EGL_NO_CONTEXT;
|
||||
|
@ -6,7 +6,7 @@
|
||||
|
||||
#include "mg.h"
|
||||
|
||||
#define GLOBAL_DEBUG 1
|
||||
#define GLOBAL_DEBUG 0
|
||||
|
||||
#define LOG() if(DEBUG||GLOBAL_DEBUG) {__android_log_print(ANDROID_LOG_DEBUG, RENDERERNAME, "Use function: %s", __FUNCTION__);printf("Use function: %s\n", __FUNCTION__);write_log("Use function: %s\n", __FUNCTION__);}
|
||||
#define LOG_D(...) if(DEBUG||GLOBAL_DEBUG) {__android_log_print(ANDROID_LOG_DEBUG, RENDERERNAME, __VA_ARGS__);printf(__VA_ARGS__);printf("\n\n");write_log(__VA_ARGS__);}
|
||||
|
@ -157,13 +157,13 @@ void InitGLESCapabilities() {
|
||||
}
|
||||
|
||||
void init_target_gles() {
|
||||
LOG_I("Initializing %s @ %s", RENDERERNAME, __FUNCTION__);
|
||||
LOG_I("Initializing %s @ hard_ext", RENDERERNAME);
|
||||
LOG_D("Initializing %s @ %s", RENDERERNAME, __FUNCTION__);
|
||||
LOG_D("Initializing %s @ hard_ext", RENDERERNAME);
|
||||
set_hard_ext();
|
||||
LOG_I("Initializing %s @ gl_state", RENDERERNAME);
|
||||
LOG_D("Initializing %s @ gl_state", RENDERERNAME);
|
||||
init_gl_state();
|
||||
|
||||
LOG_I("Initializing %s @ init_gles_func", RENDERERNAME);
|
||||
LOG_D("Initializing %s @ init_gles_func", RENDERERNAME);
|
||||
memset(&g_gles_func, 0, sizeof(g_gles_func));
|
||||
INIT_GLES_FUNC(glActiveTexture)
|
||||
INIT_GLES_FUNC(glAttachShader)
|
||||
|
@ -9,6 +9,9 @@
|
||||
#include "egl/loader.h"
|
||||
#include "gles/loader.h"
|
||||
#include "gl/envvars.h"
|
||||
#include "gl/log.h"
|
||||
|
||||
#define DEBUG 0
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
@ -31,14 +34,14 @@ void proc_init() {
|
||||
const char *glslconv_name[] = {shaderconv_lib, NULL};
|
||||
void* glslconv = open_lib(glslconv_name, shaderconv_lib);
|
||||
if (glslconv == NULL) {
|
||||
printf("%s not found\n", shaderconv_lib);
|
||||
LOG_D("%s not found\n", shaderconv_lib);
|
||||
}
|
||||
else {
|
||||
MesaConvertShader = dlsym(glslconv, func_name);
|
||||
if (MesaConvertShader) {
|
||||
printf("%s loaded\n", shaderconv_lib);
|
||||
LOG_D("%s loaded\n", shaderconv_lib);
|
||||
} else {
|
||||
printf("failed to load %s\n", shaderconv_lib);
|
||||
LOG_D("failed to load %s\n", shaderconv_lib);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user