GL_STACK_OVERFLOW: s := 'GL_STACK_OVERFLOW';
GL_STACK_UNDERFLOW: s := 'GL_STACK_UNDERFLOW';
GL_OUT_OF_MEMORY: s := 'GL_OUT_OF_MEMORY';
- GL_TABLE_TOO_LARGE: s := 'GL_TABLE_TOO_LARGE';
+ {$IFNDEF USE_GLES1}
+ GL_TABLE_TOO_LARGE: s := 'GL_TABLE_TOO_LARGE';
+ {$ENDIF}
otherwise s := '';
end;
- if s = '' then
+ if s <> '' then
e_LogWritefln('%s: %s', [msg, s])
else
e_LogWritefln('%s: error code %s', [msg, code]);
const
GL_NO_ERROR = 0;
+ GL_INVALID_ENUM = $0500;
+ GL_INVALID_VALUE = $0501;
+ GL_INVALID_OPERATION = $0502;
+ GL_STACK_OVERFLOW = $0503;
+ GL_STACK_UNDERFLOW = $0504;
+ GL_OUT_OF_MEMORY = $0505;
GL_NEAREST = $2600;
GL_DEPTH_TEST = $0B71;
GL_SCISSOR_TEST = $0C11;