1<?xml version="1.0" encoding="UTF-8" standalone="no"?> 2<!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <title xmlns:xlink="http://www.w3.org/1999/xlink">eglDestroyContext - EGL Reference Pages</title> 5 <link rel="stylesheet" type="text/css" href="khronos-man.css"/> 6 <meta name="generator" content="DocBook XSL Stylesheets V1.79.1"/> 7 </head> 8 <body> 9 <header/> 10 <div class="refentry" id="eglDestroyContext"> 11 <div class="titlepage"/> 12 <div class="refnamediv"> 13 <h2>Name</h2> 14 <p>eglDestroyContext — 15 destroy an <abbr class="acronym">EGL</abbr> rendering context 16 </p> 17 </div> 18 <div class="refsynopsisdiv"> 19 <h2>C Specification</h2> 20 <div class="funcsynopsis"> 21 <table style="border: 0; cellspacing: 0; cellpadding: 0;" class="funcprototype-table"> 22 <tr> 23 <td> 24 <code class="funcdef">EGLBoolean <strong class="fsfunc">eglDestroyContext</strong>(</code> 25 </td> 26 <td>EGLDisplay <var class="pdparam">display</var>, </td> 27 </tr> 28 <tr> 29 <td> </td> 30 <td>EGLContext <var class="pdparam">context</var><code>)</code>;</td> 31 </tr> 32 </table> 33 <div class="funcprototype-spacer"> </div> 34 </div> 35 </div> 36 <div class="refsect1" id="parameters"> 37 <h2>Parameters</h2> 38 <div class="variablelist"> 39 <dl class="variablelist"> 40 <dt> 41 <span class="term"> 42 <em class="parameter"> 43 <code>display</code> 44 </em> 45 </span> 46 </dt> 47 <dd> 48 <p>Specifies the EGL display connection.</p> 49 </dd> 50 <dt> 51 <span class="term"> 52 <em class="parameter"> 53 <code>context</code> 54 </em> 55 </span> 56 </dt> 57 <dd> 58 <p>Specifies the EGL rendering context to be destroyed. 59 </p> 60 </dd> 61 </dl> 62 </div> 63 </div> 64 <div class="refsect1" id="description"> 65 <h2>Description</h2> 66 <p> 67 If the EGL rendering context <em class="parameter"><code>context</code></em> is not 68 current to any thread, 69 <code class="function">eglDestroyContext</code> destroys it immediately. 70 Otherwise, <em class="parameter"><code>context</code></em> is destroyed when it becomes 71 not current to any thread. 72 </p> 73 </div> 74 <div class="refsect1" id="errors"> 75 <h2>Errors</h2> 76 <p> 77 <code class="constant">EGL_FALSE</code> is returned if destruction of 78 the context fails, <code class="constant">EGL_TRUE</code> otherwise. 79 </p> 80 <p> 81 <code class="constant">EGL_BAD_DISPLAY</code> is generated if 82 <em class="parameter"><code>display</code></em> is not an EGL display connection. 83 </p> 84 <p> 85 <code class="constant">EGL_NOT_INITIALIZED</code> is generated if 86 <em class="parameter"><code>display</code></em> has not been initialized. 87 </p> 88 <p> 89 <code class="constant">EGL_BAD_CONTEXT</code> is generated if 90 <em class="parameter"><code>context</code></em> is not an EGL rendering context. 91 </p> 92 </div> 93 <div class="refsect1" id="seealso"> 94 <h2>See Also</h2> 95 <p> 96 <a class="citerefentry" href="eglCreateContext.xhtml"><span class="citerefentry"><span class="refentrytitle">eglCreateContext</span></span></a>, 97 <a class="citerefentry" href="eglMakeCurrent.xhtml"><span class="citerefentry"><span class="refentrytitle">eglMakeCurrent</span></span></a> 98 </p> 99 </div> 100 <p> 101 </p> 102 <div class="refsect3" id="copyright"> 103 <img src="KhronosLogo.jpg"/> 104 <p> 105 Copyright © 2003-2014 The Khronos Group Inc. 106 Permission is hereby granted, free of charge, to any person obtaining a 107 copy of this software and/or associated documentation files (the 108 "Materials"), to deal in the Materials without restriction, including 109 without limitation the rights to use, copy, modify, merge, publish, 110 distribute, sublicense, and/or sell copies of the Materials, and to 111 permit persons to whom the Materials are furnished to do so, subject to 112 the condition that this copyright notice and permission notice shall be included 113 in all copies or substantial portions of the Materials. 114 </p> 115 </div> 116 <p> 117</p> 118 </div> 119 <footer/> 120 </body> 121</html> 122