SERVER_OUTPUTS = $(GLX_DIR)/indirect_dispatch.c \
$(GLX_DIR)/indirect_dispatch_swap.c \
- $(GLX_DIR)/indirect_dispatch.h
+ $(GLX_DIR)/indirect_dispatch.h \
+ $(GLX_DIR)/indirect_size_get.c \
+ $(GLX_DIR)/indirect_size_get.h
COMMON = gl_XML.py license.py gl_API.xml typeexpr.py
COMMON_GLX = $(COMMON) glX_XML.py glX_proto_common.py
for param in f.parameterIterator():
- if param.is_counter or param.is_image() or param.is_output or len(param.count_parameter_list):
+ if param.is_counter or param.is_image() or param.is_output or param.name in f.count_parameter_list or len(param.count_parameter_list):
location = param.name
else:
location = self.fetch_param(param)
else:
swap_func = self.swap_name(sub[0])
print ' %s = (%s) %s( (%s *) (pc + %s), %s ); break;' % (param.name, param.type_string(), swap_func, self.real_types[sub[0]], o, count_name)
+ print ' default:'
+ print ' return;'
print ' }'
else:
swap_func = self.swap_name(type_size)
print '#include <GL/gl.h>'
if self.emit_get:
print '#include "indirect_size_get.h"'
+ print '#include "glxserver.h"'
+ print '#include "indirect_util.h"'
print '#include "indirect_size.h"'
static GLboolean WarnFlag = GL_FALSE;
static _glapi_warning_func warning_func;
+#if defined(PTHREADS) || defined(GLX_USE_TLS)
static void init_glapi_relocs(void);
+#endif
static _glapi_proc generate_entrypoint(GLuint functionOffset);
static void fill_in_entrypoint_offset(_glapi_proc entrypoint, GLuint offset);
}
+#if defined(PTHREADS) || defined(GLX_USE_TLS)
/**
* Perform platform-specific GL API entry-point fixups.
*
}
#endif /* defined( USE_X86_ASM ) && defined( GLX_USE_TLS ) */
}
+#endif