- cleanup
This commit is contained in:
parent
730d07fbf7
commit
9dceedd3b0
3 changed files with 0 additions and 8 deletions
|
|
@ -292,10 +292,8 @@ sector_t *PolyFrameBuffer::RenderView(player_t *player)
|
|||
|
||||
void PolyFrameBuffer::RenderTextureView(FCanvasTexture* tex, std::function<void(IntRect &)> renderFunc)
|
||||
{
|
||||
// This doesn't need to clear the fake flat cache. It can be shared between camera textures and the main view of a scene.
|
||||
auto BaseLayer = static_cast<PolyHardwareTexture*>(tex->GetHardwareTexture(0, 0));
|
||||
|
||||
float ratio = tex->aspectRatio;
|
||||
DCanvas *image = BaseLayer->GetImage(tex, 0, 0);
|
||||
PolyDepthStencil *depthStencil = BaseLayer->GetDepthStencil(tex);
|
||||
mRenderState->SetRenderTarget(image, depthStencil, false);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue