<refentry id="glutReportErrors.3GLUT">
	<refmeta id="glutReportErrors.3GLUT-meta">
		<refentrytitle>glutReportErrors</refentrytitle>
		<manvolnum>3GLUT</manvolnum>
	</refmeta>
	<refnamediv id="glutReportErrors.3GLUT-name">
		<refname>glutReportErrors</refname>
		<refpurpose>for debugging purposes; prints out OpenGL run-time errors.</refpurpose>
	</refnamediv>
	<refsynopsisdiv id="glutReportErrors.3GLUT-c_spec">
		<title>C Specification</title>
		<funcsynopsis>
			<funcprototype>
				<funcdef>void&nbsp;<function>glutReportErrors</function></funcdef>
				<void/>
			</funcprototype>
		</funcsynopsis>
	</refsynopsisdiv>
	<refsect1 id="glutReportErrors.3GLUT-description">
		<title>Description</title>
		<para>
			This routine prints out any OpenGL run-time errors pending and clears the errors. This routine typically should only be
			used for debugging purposes since calling it will slow OpenGL programs. It is provided as a convenience; all the
			routine does is call <function moreinfo="refentry">glGetError</function> until no more errors are reported. Any errors
			detected are reported with a GLUT warning and the corresponding text message generated by <function
			moreinfo="refentry">gluErrorString</function>.
		</para>
		<para>
			Calling <function>glutReportErrors</function> repeatedly in your program can help isolate OpenGL errors to the
			offending OpenGL command. Remember that you can use the <parameter>-gldebug</parameter>option to detect OpenGL errors
			in any GLUT program.
		</para>
	</refsect1>
	<refsect1 id="glutReportErrors.3GLUT-see_also">
		<title>See Also</title>
		<para>
			<simplelist type="inline">
				<member><citerefentry>
					<refentrytitle>glutInit</refentrytitle>
					<manvolnum>3GLUT</manvolnum>
				</citerefentry></member>
				<member><citerefentry>
					<refentrytitle>glutCreateWindow</refentrytitle>
					<manvolnum>3GLUT</manvolnum>
				</citerefentry></member>
				<member><citerefentry>
					<refentrytitle>glutInitDisplayMode</refentrytitle>
					<manvolnum>3GLUT</manvolnum>
				</citerefentry></member>
				<member><citerefentry>
					<refentrytitle>gluErrorString</refentrytitle>
					<manvolnum>3G</manvolnum>
				</citerefentry></member>
				<member><citerefentry>
					<refentrytitle>glGetError</refentrytitle>
					<manvolnum>3G</manvolnum>
				</citerefentry></member>
			</simplelist>
		</para>
	</refsect1>
</refentry>
