From fb26c88b288fe0b72d646e9a755f2a84c86d3529 Mon Sep 17 00:00:00 2001 From: hybrid Date: Fri, 21 Dec 2007 14:28:55 +0000 Subject: [PATCH] Removed some WIP code which was not completely commited, and yet not working. git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1117 dfc29bdd-3216-0410-991c-e03cc46cb475 --- source/Irrlicht/COpenGLDriver.cpp | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/source/Irrlicht/COpenGLDriver.cpp b/source/Irrlicht/COpenGLDriver.cpp index 777ad669..0088df7f 100644 --- a/source/Irrlicht/COpenGLDriver.cpp +++ b/source/Irrlicht/COpenGLDriver.cpp @@ -596,8 +596,6 @@ bool COpenGLDriver::updateVertexHardwareBuffer(SHWBufferLink_opengl *HWBuffer) #else return false; #endif - - } @@ -648,8 +646,6 @@ bool COpenGLDriver::updateIndexHardwareBuffer(SHWBufferLink_opengl *HWBuffer) #else return false; #endif - - } @@ -663,9 +659,6 @@ bool COpenGLDriver::updateHardwareBuffer(SHWBufferLink *HWBuffer) || !((SHWBufferLink_opengl*)HWBuffer)->vbo_indicesID || !((SHWBufferLink_opengl*)HWBuffer)->vbo_verticesID) { - os::Printer::log("updating vbo", ELL_ERROR); - - HWBuffer->ChangedID = HWBuffer->MeshBuffer->getChangedID(); if (!updateVertexHardwareBuffer((SHWBufferLink_opengl*)HWBuffer)) @@ -685,10 +678,6 @@ COpenGLDriver::SHWBufferLink *COpenGLDriver::createHardwareBuffer(const scene::I if (!mb || (mb->getHardwareMappingHint()==scene::EHM_NEVER)) return 0; - - - os::Printer::log("making vbo", ELL_ERROR); - SHWBufferLink_opengl *HWBuffer=new SHWBufferLink_opengl(mb); //add to list, in order of their meshbuffer pointer @@ -2479,8 +2468,6 @@ bool COpenGLDriver::setRenderTarget(video::ITexture* texture, bool clearBackBuff ResetRenderStates=true; if (RenderTargetTexture!=0) { - glReadPixels(0, 0, RenderTargetTexture->getSize().Width, RenderTargetTexture->getSize().Height, GL_RGBA, GL_UNSIGNED_BYTE, RenderTargetTexture->lock()); - RenderTargetTexture->unlock(); if (RenderTargetTexture->isFrameBufferObject()) { RenderTargetTexture->unbindFrameBufferObject();