Add a 2d drawer to canvas textures
This commit is contained in:
parent
cd20d707d4
commit
4f0b02b396
11 changed files with 354 additions and 2 deletions
|
|
@ -229,6 +229,12 @@ void OpenGLFrameBuffer::RenderTextureView(FCanvasTexture* tex, std::function<voi
|
|||
bounds.height = FHardwareTexture::GetTexDimension(tex->GetHeight());
|
||||
|
||||
renderFunc(bounds);
|
||||
|
||||
if (tex->Drawer)
|
||||
{
|
||||
::Draw2D(tex->Drawer.get(), gl_RenderState);
|
||||
}
|
||||
|
||||
GLRenderer->EndOffscreen();
|
||||
|
||||
tex->SetUpdated(true);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue