From 58ea5f88dce10a8db1532db90878337c16b25807 Mon Sep 17 00:00:00 2001 From: Shyotl Date: Mon, 17 Oct 2011 19:06:22 -0500 Subject: [PATCH] Spew llinfos for opengl procs that aren't found. --- indra/llrender/llgl.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/indra/llrender/llgl.cpp b/indra/llrender/llgl.cpp index 40baf7b33..712582540 100644 --- a/indra/llrender/llgl.cpp +++ b/indra/llrender/llgl.cpp @@ -68,6 +68,16 @@ BOOL gGLActive = FALSE; std::ofstream gFailLog; +void* gl_get_proc_address(const char *pStr) +{ + void* pPtr = (void*)GLH_EXT_GET_PROC_ADDRESS(pStr); + if(!pPtr) + llinfos << "Failed to find symbol '" << pStr << "'" << llendl; + return pPtr; +} +#undef GLH_EXT_GET_PROC_ADDRESS +#define GLH_EXT_GET_PROC_ADDRESS(p) gl_get_proc_address(p) + void ll_init_fail_log(std::string filename) { gFailLog.open(filename.c_str());