mirror of
https://gitlab.com/shinovon/re3-symbian.git
synced 2026-05-23 01:57:21 +03:00
No more out of memory errors on VC3
This commit is contained in:
parent
689c76b4c5
commit
30fff6bbab
5 changed files with 76 additions and 36 deletions
14
vendor/librw/src/gl/rwgl3.h
vendored
14
vendor/librw/src/gl/rwgl3.h
vendored
|
|
@ -18,6 +18,20 @@
|
|||
#endif
|
||||
#endif
|
||||
|
||||
#if 0
|
||||
extern void re3_debug(const char *format, ...);
|
||||
extern void re3_trace(const char *filename, unsigned int lineno, const char *func, const char *format, ...);
|
||||
#define CHECK_GL_ERROR(trace) do { \
|
||||
int glerror = glGetError(); \
|
||||
if (glerror != 0) { \
|
||||
re3_trace(__FILE__, __LINE__, __FUNCTION__, "GL Error %x on %s", glerror, trace); \
|
||||
} \
|
||||
} while(0);
|
||||
#else
|
||||
#define CHECK_GL_ERROR(a)
|
||||
#endif
|
||||
|
||||
|
||||
namespace rw {
|
||||
|
||||
#ifdef RW_GL3
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue