+
+static int decode_gldError(GlDecoder *dec, const char *data)
+{
+ unsigned pos = 0;
+ GLenum code;
+ pos += read_int(&code, data);
+ if(dec->gldError)
+ dec->gldError(dec->user_data, code);
+ return pos;
+}
+
+static int decode_gldfunc(GlDecoder *dec, unsigned short func, const char *data)
+{
+ switch(func)
+ {
+ case FUNC_GLDERROR: return decode_gldError(dec, data);
+ default: return -1;
+ }
+}