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-e03cc46cb475master
parent
757cb257a6
commit
fb26c88b28
|
@ -596,8 +596,6 @@ bool COpenGLDriver::updateVertexHardwareBuffer(SHWBufferLink_opengl *HWBuffer)
|
||||||
#else
|
#else
|
||||||
return false;
|
return false;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -648,8 +646,6 @@ bool COpenGLDriver::updateIndexHardwareBuffer(SHWBufferLink_opengl *HWBuffer)
|
||||||
#else
|
#else
|
||||||
return false;
|
return false;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -663,9 +659,6 @@ bool COpenGLDriver::updateHardwareBuffer(SHWBufferLink *HWBuffer)
|
||||||
|| !((SHWBufferLink_opengl*)HWBuffer)->vbo_indicesID
|
|| !((SHWBufferLink_opengl*)HWBuffer)->vbo_indicesID
|
||||||
|| !((SHWBufferLink_opengl*)HWBuffer)->vbo_verticesID)
|
|| !((SHWBufferLink_opengl*)HWBuffer)->vbo_verticesID)
|
||||||
{
|
{
|
||||||
os::Printer::log("updating vbo", ELL_ERROR);
|
|
||||||
|
|
||||||
|
|
||||||
HWBuffer->ChangedID = HWBuffer->MeshBuffer->getChangedID();
|
HWBuffer->ChangedID = HWBuffer->MeshBuffer->getChangedID();
|
||||||
|
|
||||||
if (!updateVertexHardwareBuffer((SHWBufferLink_opengl*)HWBuffer))
|
if (!updateVertexHardwareBuffer((SHWBufferLink_opengl*)HWBuffer))
|
||||||
|
@ -685,10 +678,6 @@ COpenGLDriver::SHWBufferLink *COpenGLDriver::createHardwareBuffer(const scene::I
|
||||||
if (!mb || (mb->getHardwareMappingHint()==scene::EHM_NEVER))
|
if (!mb || (mb->getHardwareMappingHint()==scene::EHM_NEVER))
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
os::Printer::log("making vbo", ELL_ERROR);
|
|
||||||
|
|
||||||
SHWBufferLink_opengl *HWBuffer=new SHWBufferLink_opengl(mb);
|
SHWBufferLink_opengl *HWBuffer=new SHWBufferLink_opengl(mb);
|
||||||
|
|
||||||
//add to list, in order of their meshbuffer pointer
|
//add to list, in order of their meshbuffer pointer
|
||||||
|
@ -2479,8 +2468,6 @@ bool COpenGLDriver::setRenderTarget(video::ITexture* texture, bool clearBackBuff
|
||||||
ResetRenderStates=true;
|
ResetRenderStates=true;
|
||||||
if (RenderTargetTexture!=0)
|
if (RenderTargetTexture!=0)
|
||||||
{
|
{
|
||||||
glReadPixels(0, 0, RenderTargetTexture->getSize().Width, RenderTargetTexture->getSize().Height, GL_RGBA, GL_UNSIGNED_BYTE, RenderTargetTexture->lock());
|
|
||||||
RenderTargetTexture->unlock();
|
|
||||||
if (RenderTargetTexture->isFrameBufferObject())
|
if (RenderTargetTexture->isFrameBufferObject())
|
||||||
{
|
{
|
||||||
RenderTargetTexture->unbindFrameBufferObject();
|
RenderTargetTexture->unbindFrameBufferObject();
|
||||||
|
|
Loading…
Reference in New Issue