- moved more code from FDrawInfo to HWDrawInfo.

The entire setup/takedown code did not reference any API specific data. The only thing needed is a global virtual creation function.
This commit is contained in:
Christoph Oelckers 2018-10-28 19:39:31 +01:00
commit 2ee2766812
8 changed files with 103 additions and 83 deletions

View file

@ -43,6 +43,7 @@
#include "hwrenderer/data/hw_viewpointbuffer.h"
#include "hwrenderer/dynlights/hw_lightbuffer.h"
#include "gl/shaders/gl_shaderprogram.h"
#include "gl/scene/gl_drawinfo.h"
#include "gl_debug.h"
#include "r_videoscale.h"
#include "gl_buffers.h"
@ -376,6 +377,10 @@ IDataBuffer *OpenGLFrameBuffer::CreateDataBuffer(int bindingpoint, bool ssbo)
return new GLDataBuffer(bindingpoint, ssbo);
}
HWDrawInfo *OpenGLFrameBuffer::CreateDrawInfo()
{
return new FDrawInfo;
}
void OpenGLFrameBuffer::TextureFilterChanged()
{