shithub: tinygl

ref: 8b60b91ae4d6187e1784d43476e34c5cf056f6c8
dir: /src/error_check_no_context.h/

View raw version
#ifndef RETVAL
#define RETVAL /* a comment*/
#endif

#if TGL_FEATURE_ERROR_CHECK == 1
	
//#error should never execute
#if TGL_FEATURE_STRICT_OOM_CHECKS == 1
	GLContext* c = gl_get_context();
	if(c->error_flag == GL_OUT_OF_MEMORY)
		return RETVAL;
#elif defined(NEED_CONTEXT)
	GLContext* c = gl_get_context();
#endif




#endif 

#undef RETVAL
#undef NEED_CONTEXT