fflush(trace_fp)
#define _COREGL_TRACE_OUTPUT_INTERVAL_SEC 5
-static inline GLint GET_INT_FROM_FLOAT(GLfloat value) { return *((GLint *)&value); }
-static inline GLuint GET_UINT_FROM_FLOAT(GLfloat value) { return *((GLint *)&value); }
+static inline GLint GET_INT_FROM_FLOAT(GLfloat value) { return (GLint)value; }
+static inline GLuint GET_UINT_FROM_FLOAT(GLfloat value) { return (GLuint)value; }
#ifdef COREGL_DEBUG
fastpath_remove_context_states_from_list(GLContextState *cstate, Mutex *mtx)
{
int ret = 0;
- int tid = 0;
GLContext_List *olditm = NULL;
GLContext_List *current = NULL;
AST(cstate != NULL);
- tid = get_current_thread();
current = glctx_list;
while (current != NULL)
#define PRINTF_CHAR_GLsizei "%10u"
#define PRINTF_CHAR_GLuint "%10u"
#define PRINTF_CHAR_GLuintmask "0x%8X"
-#define PRINTF_CHAR_GLintptr "0x%8X"
-#define PRINTF_CHAR_GLsizeiptr "%10d"
+#define PRINTF_CHAR_GLintptr "%10ld"
+#define PRINTF_CHAR_GLsizeiptr "%10ld"
#define PRINTF_CHAR_GLclampf "%10.6f"
#define PRINTF_CHAR_GLfloat "%10.6f"
void
fastpath_glSamplerParameteri(GLuint sampler, GLenum pname, GLint param)
{
- GLboolean ret = GL_FALSE;
GLuint real_obj;
DEFINE_FASTPAH_GL_FUNC();
if (GET_REAL_OBJ(GL_OBJECT_TYPE_SAMPLER, sampler, &real_obj) != 1)
{
- ret = GL_FALSE;
goto finish;
}
void
fastpath_glSamplerParameteriv(GLuint sampler, GLenum pname, const GLint* param)
{
- GLboolean ret = GL_FALSE;
GLuint real_obj;
DEFINE_FASTPAH_GL_FUNC();
if (GET_REAL_OBJ(GL_OBJECT_TYPE_SAMPLER, sampler, &real_obj) != 1)
{
- ret = GL_FALSE;
goto finish;
}
void
fastpath_glSamplerParameterf(GLuint sampler, GLenum pname, GLfloat param)
{
- GLboolean ret = GL_FALSE;
GLuint real_obj;
DEFINE_FASTPAH_GL_FUNC();
if (GET_REAL_OBJ(GL_OBJECT_TYPE_SAMPLER, sampler, &real_obj) != 1)
{
- ret = GL_FALSE;
goto finish;
}
void
fastpath_glSamplerParameterfv(GLuint sampler, GLenum pname, const GLfloat* param)
{
- GLboolean ret = GL_FALSE;
GLuint real_obj;
DEFINE_FASTPAH_GL_FUNC();
if (GET_REAL_OBJ(GL_OBJECT_TYPE_SAMPLER, sampler, &real_obj) != 1)
{
- ret = GL_FALSE;
goto finish;
}
void
fastpath_glGetSamplerParameteriv(GLuint sampler, GLenum pname, GLint* params)
{
- GLboolean ret = GL_FALSE;
GLuint real_obj;
DEFINE_FASTPAH_GL_FUNC();
if (GET_REAL_OBJ(GL_OBJECT_TYPE_SAMPLER, sampler, &real_obj) != 1)
{
- ret = GL_FALSE;
goto finish;
}
void
fastpath_glGetSamplerParameterfv(GLuint sampler, GLenum pname, GLfloat* params)
{
- GLboolean ret = GL_FALSE;
GLuint real_obj;
DEFINE_FASTPAH_GL_FUNC();
if (GET_REAL_OBJ(GL_OBJECT_TYPE_SAMPLER, sampler, &real_obj) != 1)
{
- ret = GL_FALSE;
goto finish;
}
#define PRINTF_CHAR_GLsizei "%10u"
#define PRINTF_CHAR_GLuint "%10u"
#define PRINTF_CHAR_GLuintmask "0x%8X"
-#define PRINTF_CHAR_GLintptr "0x%8X"
-#define PRINTF_CHAR_GLsizeiptr "%10d"
+#define PRINTF_CHAR_GLintptr "%10ld"
+#define PRINTF_CHAR_GLsizeiptr "%10ld"
#define PRINTF_CHAR_GLclampf "%10.6f"
#define PRINTF_CHAR_GLfloat "%10.6f"