1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 2<html xml:lang="en-US" lang="en-US" xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 5 <meta http-equiv="Content-Style-Type" content="text/css" /> 6 <link rel="stylesheet" href="../css/manpage.css" type="text/css" /> 7<title>glGetError</title> 8 </head> 9 <body> 10<h1>glGetError Function</h1> 11<h2>Syntax</h2> 12 <div class="section"> 13 <pre class="definition"> 14GL_APICALL GLenum GL_APIENTRY glGetError( 15 void 16); 17</pre> 18 </div> 19<h2>Parameters</h2> 20 <div class="section"> 21<p>None.</p> 22 </div> 23<h2>Return Values</h2> 24<div class="section">Error number. </div> 25<h2>Description</h2> 26 <div class="section"> 27<p>Gets the error number.</p><P><UL><LI>A value of <code>GL_NO_ERROR</code> indicates that no errors have occurred.</LI><LI>A value of <code>GL_INVALID_ENUM</code> indicates that an error has occurred because an invalid <code>GLenum</code>-type argument was specified.</LI><LI>A value of <code>GL_INVALID_VALUE</code> indicates that an error has occurred because an out-of-range number was specified as an argument.</LI><LI>A value of <code>GL_INVALID_OPERATION</code> indicates that an error has occurred because of an invalid operation.</LI><LI>A value of <code>GL_INVALID_FRAMEBUFFER_OPERATION</code> indicates that an error has occurred because of an attempt to render to or read from an incorrectly configured framebuffer.</LI><LI>A value of <code>GL_OUT_OF_MEMORY</code> indicates that an error has occurred because memory allocation failed.</LI><LI>A value of <CODE>GL_ERROR_COMMANDBUFFER_FULL_DMP</CODE> indicates that an error has occurred because of an overflow in the current command buffer.</LI><LI>A value of <CODE>GL_ERROR_COMMANDREQUEST_FULL_DMP</CODE> indicates that an error has occurred because of an overflow of command requests accumulated in the current command list.</LI></UL></P><P> 28After an error occurs, its number is not overwritten by any other new errors until <code>glGetError</code> is called. Calling this function clears the error number. 29 </P></div> 30<h2>Revision History</h2> 31 <div class="section"> 32 <dl class="history"> 33 <dt>2010/10/21</dt> 34<dd>Added information on <CODE>GL_ERROR_COMMANDREQUEST_FULL_DMP</CODE>.<br /> 35 </dd> 36 <dt>2010/06/09</dt> 37<dd>Added information on <CODE>GL_ERROR_COMMANDBUFFER_FULL_DMP</CODE>.<br /> 38 </dd> 39 <dt>2010/01/07</dt> 40<dd>Initial version.<br /> 41 </dd> 42 </dl> 43 </div> 44 <hr><p>CONFIDENTIAL</p></body> 45</html>