102f4aeb0Sopenharmony_ci<?xml version="1.0" encoding="UTF-8"?> 202f4aeb0Sopenharmony_ci<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook MathML Module V1.1b1//EN" 302f4aeb0Sopenharmony_ci "http://www.oasis-open.org/docbook/xml/mathml/1.1CR1/dbmathml.dtd"> 402f4aeb0Sopenharmony_ci<refentry xml:base="" id="eglDestroyContext"> 502f4aeb0Sopenharmony_ci <refentryinfo> 602f4aeb0Sopenharmony_ci <copyright> 702f4aeb0Sopenharmony_ci <year>2003-2014</year> 802f4aeb0Sopenharmony_ci <holder>The Khronos Group Inc.</holder> 902f4aeb0Sopenharmony_ci </copyright> 1002f4aeb0Sopenharmony_ci </refentryinfo> 1102f4aeb0Sopenharmony_ci <refmeta> 1202f4aeb0Sopenharmony_ci <refentrytitle>eglDestroyContext</refentrytitle> 1302f4aeb0Sopenharmony_ci <manvolnum>3G</manvolnum> 1402f4aeb0Sopenharmony_ci </refmeta> 1502f4aeb0Sopenharmony_ci <refnamediv> 1602f4aeb0Sopenharmony_ci <refname>eglDestroyContext</refname> 1702f4aeb0Sopenharmony_ci <refpurpose> 1802f4aeb0Sopenharmony_ci destroy an <acronym>EGL</acronym> rendering context 1902f4aeb0Sopenharmony_ci </refpurpose> 2002f4aeb0Sopenharmony_ci </refnamediv> 2102f4aeb0Sopenharmony_ci <refsynopsisdiv> 2202f4aeb0Sopenharmony_ci <title>C Specification</title> 2302f4aeb0Sopenharmony_ci <funcsynopsis> 2402f4aeb0Sopenharmony_ci <funcprototype> 2502f4aeb0Sopenharmony_ci <funcdef>EGLBoolean <function>eglDestroyContext</function></funcdef> 2602f4aeb0Sopenharmony_ci <paramdef>EGLDisplay <parameter>display</parameter></paramdef> 2702f4aeb0Sopenharmony_ci <paramdef>EGLContext <parameter>context</parameter></paramdef> 2802f4aeb0Sopenharmony_ci </funcprototype> 2902f4aeb0Sopenharmony_ci </funcsynopsis> 3002f4aeb0Sopenharmony_ci </refsynopsisdiv> 3102f4aeb0Sopenharmony_ci <refsect1 id="parameters"><title>Parameters</title> 3202f4aeb0Sopenharmony_ci <variablelist> 3302f4aeb0Sopenharmony_ci <varlistentry> 3402f4aeb0Sopenharmony_ci <term><parameter>display</parameter></term> 3502f4aeb0Sopenharmony_ci <listitem><para>Specifies the EGL display connection.</para></listitem> 3602f4aeb0Sopenharmony_ci </varlistentry> 3702f4aeb0Sopenharmony_ci <varlistentry> 3802f4aeb0Sopenharmony_ci <term><parameter>context</parameter></term> 3902f4aeb0Sopenharmony_ci <listitem><para>Specifies the EGL rendering context to be destroyed. 4002f4aeb0Sopenharmony_ci </para></listitem> 4102f4aeb0Sopenharmony_ci </varlistentry> 4202f4aeb0Sopenharmony_ci </variablelist> 4302f4aeb0Sopenharmony_ci </refsect1> 4402f4aeb0Sopenharmony_ci <refsect1 id="description"><title>Description</title> 4502f4aeb0Sopenharmony_ci <para> 4602f4aeb0Sopenharmony_ci If the EGL rendering context <parameter>context</parameter> is not 4702f4aeb0Sopenharmony_ci current to any thread, 4802f4aeb0Sopenharmony_ci <function>eglDestroyContext</function> destroys it immediately. 4902f4aeb0Sopenharmony_ci Otherwise, <parameter>context</parameter> is destroyed when it becomes 5002f4aeb0Sopenharmony_ci not current to any thread. 5102f4aeb0Sopenharmony_ci </para> 5202f4aeb0Sopenharmony_ci </refsect1> 5302f4aeb0Sopenharmony_ci <refsect1 id="errors"><title>Errors</title> 5402f4aeb0Sopenharmony_ci <para> 5502f4aeb0Sopenharmony_ci <constant>EGL_FALSE</constant> is returned if destruction of 5602f4aeb0Sopenharmony_ci the context fails, <constant>EGL_TRUE</constant> otherwise. 5702f4aeb0Sopenharmony_ci </para> 5802f4aeb0Sopenharmony_ci <para> 5902f4aeb0Sopenharmony_ci <constant>EGL_BAD_DISPLAY</constant> is generated if 6002f4aeb0Sopenharmony_ci <parameter>display</parameter> is not an EGL display connection. 6102f4aeb0Sopenharmony_ci </para> 6202f4aeb0Sopenharmony_ci <para> 6302f4aeb0Sopenharmony_ci <constant>EGL_NOT_INITIALIZED</constant> is generated if 6402f4aeb0Sopenharmony_ci <parameter>display</parameter> has not been initialized. 6502f4aeb0Sopenharmony_ci </para> 6602f4aeb0Sopenharmony_ci <para> 6702f4aeb0Sopenharmony_ci <constant>EGL_BAD_CONTEXT</constant> is generated if 6802f4aeb0Sopenharmony_ci <parameter>context</parameter> is not an EGL rendering context. 6902f4aeb0Sopenharmony_ci </para> 7002f4aeb0Sopenharmony_ci </refsect1> 7102f4aeb0Sopenharmony_ci <refsect1 id="seealso"><title>See Also</title> 7202f4aeb0Sopenharmony_ci <para> 7302f4aeb0Sopenharmony_ci <citerefentry><refentrytitle>eglCreateContext</refentrytitle></citerefentry>, 7402f4aeb0Sopenharmony_ci <citerefentry><refentrytitle>eglMakeCurrent</refentrytitle></citerefentry> 7502f4aeb0Sopenharmony_ci </para> 7602f4aeb0Sopenharmony_ci </refsect1> 7702f4aeb0Sopenharmony_ci <refsect3 id="Copyright"><title></title> 7802f4aeb0Sopenharmony_ci <!-- Content included from copyright.inc.xsl --> 7902f4aeb0Sopenharmony_ci <imageobject> 8002f4aeb0Sopenharmony_ci <imagedata fileref="KhronosLogo.jpg" format="jpg" /> 8102f4aeb0Sopenharmony_ci </imageobject> 8202f4aeb0Sopenharmony_ci <para /> 8302f4aeb0Sopenharmony_ci </refsect3> 8402f4aeb0Sopenharmony_ci</refentry> 85