From bd19d5345af28353e9de2ea8f33c590c0b1043f3 Mon Sep 17 00:00:00 2001 From: hybrid Date: Mon, 11 May 2009 12:16:18 +0000 Subject: [PATCH] Disable point attenuation when using point size arrays. git-svn-id: http://svn.code.sf.net/p/irrlicht/code/branches/ogl-es@2388 dfc29bdd-3216-0410-991c-e03cc46cb475 --- source/Irrlicht/COGLESDriver.cpp | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/source/Irrlicht/COGLESDriver.cpp b/source/Irrlicht/COGLESDriver.cpp index 0769ba9f..52b69a0e 100644 --- a/source/Irrlicht/COGLESDriver.cpp +++ b/source/Irrlicht/COGLESDriver.cpp @@ -987,15 +987,19 @@ void COGLES1Driver::drawVertexPrimitiveList2d3d(const void* vertices, u32 vertex if (pType==scene::EPT_POINT_SPRITES && FeatureAvailable[IRR_OES_point_sprite]) glEnable(GL_POINT_SPRITE_OES); #endif - float quadratic[] = {0.0f, 0.0f, 10.01f}; - extGlPointParameterfv(GL_POINT_DISTANCE_ATTENUATION, quadratic); - float maxParticleSize=1.0f; - glGetFloatv(GL_POINT_SIZE_MAX, &maxParticleSize); -// maxParticleSize=maxParticleSize