1<?xml version="1.0" encoding="UTF-8"?> 2<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook MathML Module V1.1b1//EN" 3 "http://www.oasis-open.org/docbook/xml/mathml/1.1CR1/dbmathml.dtd"> 4<refentry xml:base="" id="eglDestroyContext"> 5 <refentryinfo> 6 <copyright> 7 <year>2003-2014</year> 8 <holder>The Khronos Group Inc.</holder> 9 </copyright> 10 </refentryinfo> 11 <refmeta> 12 <refentrytitle>eglDestroyContext</refentrytitle> 13 <manvolnum>3G</manvolnum> 14 </refmeta> 15 <refnamediv> 16 <refname>eglDestroyContext</refname> 17 <refpurpose> 18 destroy an <acronym>EGL</acronym> rendering context 19 </refpurpose> 20 </refnamediv> 21 <refsynopsisdiv> 22 <title>C Specification</title> 23 <funcsynopsis> 24 <funcprototype> 25 <funcdef>EGLBoolean <function>eglDestroyContext</function></funcdef> 26 <paramdef>EGLDisplay <parameter>display</parameter></paramdef> 27 <paramdef>EGLContext <parameter>context</parameter></paramdef> 28 </funcprototype> 29 </funcsynopsis> 30 </refsynopsisdiv> 31 <refsect1 id="parameters"><title>Parameters</title> 32 <variablelist> 33 <varlistentry> 34 <term><parameter>display</parameter></term> 35 <listitem><para>Specifies the EGL display connection.</para></listitem> 36 </varlistentry> 37 <varlistentry> 38 <term><parameter>context</parameter></term> 39 <listitem><para>Specifies the EGL rendering context to be destroyed. 40 </para></listitem> 41 </varlistentry> 42 </variablelist> 43 </refsect1> 44 <refsect1 id="description"><title>Description</title> 45 <para> 46 If the EGL rendering context <parameter>context</parameter> is not 47 current to any thread, 48 <function>eglDestroyContext</function> destroys it immediately. 49 Otherwise, <parameter>context</parameter> is destroyed when it becomes 50 not current to any thread. 51 </para> 52 </refsect1> 53 <refsect1 id="errors"><title>Errors</title> 54 <para> 55 <constant>EGL_FALSE</constant> is returned if destruction of 56 the context fails, <constant>EGL_TRUE</constant> otherwise. 57 </para> 58 <para> 59 <constant>EGL_BAD_DISPLAY</constant> is generated if 60 <parameter>display</parameter> is not an EGL display connection. 61 </para> 62 <para> 63 <constant>EGL_NOT_INITIALIZED</constant> is generated if 64 <parameter>display</parameter> has not been initialized. 65 </para> 66 <para> 67 <constant>EGL_BAD_CONTEXT</constant> is generated if 68 <parameter>context</parameter> is not an EGL rendering context. 69 </para> 70 </refsect1> 71 <refsect1 id="seealso"><title>See Also</title> 72 <para> 73 <citerefentry><refentrytitle>eglCreateContext</refentrytitle></citerefentry>, 74 <citerefentry><refentrytitle>eglMakeCurrent</refentrytitle></citerefentry> 75 </para> 76 </refsect1> 77 <refsect3 id="Copyright"><title></title> 78 <!-- Content included from copyright.inc.xsl --> 79 <imageobject> 80 <imagedata fileref="KhronosLogo.jpg" format="jpg" /> 81 </imageobject> 82 <para /> 83 </refsect3> 84</refentry> 85