renderer: clear texture upon creation
This commit is contained in:
@@ -156,6 +156,7 @@ void RenderProcessor::Run()
|
|||||||
// Return GPU texture
|
// Return GPU texture
|
||||||
if (!texture) {
|
if (!texture) {
|
||||||
texture = render_ctx_->CreateTexture(GetCacheVideoParams());
|
texture = render_ctx_->CreateTexture(GetCacheVideoParams());
|
||||||
|
render_ctx_->ClearDestination(texture.get());
|
||||||
}
|
}
|
||||||
|
|
||||||
render_ctx_->Flush();
|
render_ctx_->Flush();
|
||||||
|
|||||||
Reference in New Issue
Block a user