Revert "OpenGL: delete shaders and pipelines when they are not used any longer"
This reverts commit a57c1db878e2f8a7eb352c8f253db5488cdca6f6.
It produces a GL_INVALID_VALUE in ColorStateTest.ColorWriteMask
BUG=dawn:529
Change-Id: I3511057daf24baaf895b86cbda2a3a21e58d77fb
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/65384
Auto-Submit: Corentin Wallez <cwallez@chromium.org>
Reviewed-by: Ben Clayton <bclayton@google.com>
Commit-Queue: Corentin Wallez <cwallez@chromium.org>
diff --git a/src/dawn_native/opengl/PipelineGL.h b/src/dawn_native/opengl/PipelineGL.h
index be6c1dd..e210606 100644
--- a/src/dawn_native/opengl/PipelineGL.h
+++ b/src/dawn_native/opengl/PipelineGL.h
@@ -47,12 +47,12 @@
const std::vector<GLuint>& GetTextureUnitsForTextureView(GLuint index) const;
GLuint GetProgramHandle() const;
- protected:
void ApplyNow(const OpenGLFunctions& gl);
+
+ protected:
MaybeError InitializeBase(const OpenGLFunctions& gl,
const PipelineLayout* layout,
const PerStage<ProgrammableStage>& stages);
- void DeleteProgram(const OpenGLFunctions& gl);
private:
GLuint mProgram;