mirror of
https://github.com/minetest/irrlicht.git
synced 2024-12-25 15:42:25 +01:00
Whitespace fixes.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/branches/ogl-es@6186 dfc29bdd-3216-0410-991c-e03cc46cb475
This commit is contained in:
parent
838ecd6bf8
commit
1f7c1830cb
@ -87,8 +87,8 @@ bool CEGLManager::initialize(const SIrrlichtCreationParameters& params, const SE
|
|||||||
|
|
||||||
void CEGLManager::terminate()
|
void CEGLManager::terminate()
|
||||||
{
|
{
|
||||||
if (EglWindow == 0 && EglDisplay == EGL_NO_DISPLAY)
|
if (EglWindow == 0 && EglDisplay == EGL_NO_DISPLAY)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (EglDisplay != EGL_NO_DISPLAY)
|
if (EglDisplay != EGL_NO_DISPLAY)
|
||||||
{
|
{
|
||||||
@ -507,8 +507,8 @@ irr::s32 CEGLManager::rateConfig(EGLConfig config, EGLint eglOpenGLBIT, bool log
|
|||||||
|
|
||||||
void CEGLManager::destroySurface()
|
void CEGLManager::destroySurface()
|
||||||
{
|
{
|
||||||
if (EglSurface == EGL_NO_SURFACE)
|
if (EglSurface == EGL_NO_SURFACE)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// We should unbind current EGL context before destroy EGL surface.
|
// We should unbind current EGL context before destroy EGL surface.
|
||||||
eglMakeCurrent(EglDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT);
|
eglMakeCurrent(EglDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT);
|
||||||
@ -519,11 +519,11 @@ void CEGLManager::destroySurface()
|
|||||||
|
|
||||||
bool CEGLManager::generateContext()
|
bool CEGLManager::generateContext()
|
||||||
{
|
{
|
||||||
if (EglDisplay == EGL_NO_DISPLAY || EglSurface == EGL_NO_SURFACE)
|
if (EglDisplay == EGL_NO_DISPLAY || EglSurface == EGL_NO_SURFACE)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if (EglContext != EGL_NO_CONTEXT)
|
if (EglContext != EGL_NO_CONTEXT)
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
EGLint OpenGLESVersion = 0;
|
EGLint OpenGLESVersion = 0;
|
||||||
|
|
||||||
@ -563,8 +563,8 @@ bool CEGLManager::generateContext()
|
|||||||
|
|
||||||
void CEGLManager::destroyContext()
|
void CEGLManager::destroyContext()
|
||||||
{
|
{
|
||||||
if (EglContext == EGL_NO_CONTEXT)
|
if (EglContext == EGL_NO_CONTEXT)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// We must unbind current EGL context before destroy it.
|
// We must unbind current EGL context before destroy it.
|
||||||
eglMakeCurrent(EglDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT);
|
eglMakeCurrent(EglDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT);
|
||||||
|
Loading…
Reference in New Issue
Block a user