Unify stencil buffer upload using Draw. Only OpenGL tested yet (shaders need adaptation).

This commit is contained in:
Henrik Rydgård committed 2022-08-03 13:31:13 +02:00
1 parent d4d92e39ff
commit 9bead443c3
20 files changed
+287 -792

No files matched your search

+5 -3
View File
@@ -144,10 +144,12 @@ void FramebufferManagerGLES::DestroyDeviceObjects() {
render_->DeleteProgram(draw2dprogram_);
draw2dprogram_ = nullptr;
}
if (stencilUploadProgram_) {
render_->DeleteProgram(stencilUploadProgram_);
stencilUploadProgram_ = nullptr;
if (stencilUploadPipeline_) {
stencilUploadPipeline_->Release();
stencilUploadPipeline_ = nullptr;
}
if (depthDownloadProgram_) {
render_->DeleteProgram(depthDownloadProgram_);
depthDownloadProgram_ = nullptr;