glshim: added glx/lookup.c to compilation
This commit is contained in:
@@ -38,6 +38,7 @@ LOCAL_SRC_FILES := \
|
||||
src/gl/wrap/glesext.c \
|
||||
src/gl/wrap/glstub.c \
|
||||
src/gl/math/eval.c \
|
||||
src/glx/lookup.c \
|
||||
src/glx/streaming.c
|
||||
|
||||
LOCAL_CFLAGS += -g -std=c99 -funwind-tables -O3 -DBCMHOST
|
||||
|
||||
@@ -1,4 +1,11 @@
|
||||
#ifdef ANDROID
|
||||
#include "../gl/gl.h"
|
||||
#include <android/log.h>
|
||||
#else
|
||||
#include "glx.h"
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
#define MAP(func_name, func) \
|
||||
if (strcmp(name, func_name) == 0) return (void *)func;
|
||||
@@ -31,6 +38,7 @@ void *glXGetProcAddressARB(const char *name) {
|
||||
#include "glesfuncs.inc"
|
||||
#endif
|
||||
|
||||
#ifndef ANDROID
|
||||
// glX calls
|
||||
EX(glXChooseVisual);
|
||||
EX(glXCopyContext);
|
||||
@@ -66,7 +74,8 @@ void *glXGetProcAddressARB(const char *name) {
|
||||
EX(glXGetVisualFromFBConfig);
|
||||
EX(glXCreateWindow);
|
||||
EX(glXDestroyWindow);
|
||||
|
||||
#endif
|
||||
|
||||
// GL_ARB_vertex_buffer_object
|
||||
ARB(glBindBuffer);
|
||||
ARB(glBufferData);
|
||||
@@ -436,7 +445,11 @@ void *glXGetProcAddressARB(const char *name) {
|
||||
STUB(glIndexPointerEXT);
|
||||
STUB(glIndexPointer);
|
||||
|
||||
#ifdef ANDROID
|
||||
__android_log_print(ANDROID_LOG_INFO, "glshim","glXGetProcAddress: %s not found.\n", name);
|
||||
#else
|
||||
printf("glXGetProcAddress: %s not found.\n", name);
|
||||
#endif
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user