From d0a909361bf575055171dbf52f8d7affcad8d95a Mon Sep 17 00:00:00 2001 From: Deve Date: Fri, 21 Apr 2017 21:06:53 +0200 Subject: [PATCH] Revert "Avoid reading/writing out of array" This reverts commit 7f53faed4aeabea76a1ac5cba5239db82d1d2b6c. --- lib/irrlicht/source/Irrlicht/COGLES2Driver.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/lib/irrlicht/source/Irrlicht/COGLES2Driver.cpp b/lib/irrlicht/source/Irrlicht/COGLES2Driver.cpp index 343dedf8a..a39445e7f 100644 --- a/lib/irrlicht/source/Irrlicht/COGLES2Driver.cpp +++ b/lib/irrlicht/source/Irrlicht/COGLES2Driver.cpp @@ -126,11 +126,7 @@ namespace video }; EGLint num_configs; -#if defined( _IRR_COMPILE_WITH_ANDROID_DEVICE_ ) - u32 steps=0; -#else u32 steps=5; -#endif while (!eglChooseConfig(EglDisplay, attribs, &EglConfig, 1, &num_configs) || !num_configs) { switch (steps) @@ -196,7 +192,6 @@ namespace video return; } } -#if !defined( _IRR_COMPILE_WITH_ANDROID_DEVICE_ ) if (params.AntiAlias && !attribs[17]) os::Printer::log("No multisampling."); if (params.WithAlphaChannel && !attribs[7]) @@ -207,7 +202,6 @@ namespace video os::Printer::log("No full depth buffer."); if (params.Bits > attribs[9]) os::Printer::log("No full color buffer."); -#endif #if defined(_IRR_COMPILE_WITH_ANDROID_DEVICE_) /* EGL_NATIVE_VISUAL_ID is an attribute of the EGLConfig that is * guaranteed to be accepted by ANativeWindow_setBuffersGeometry().