[Impeller] Some fixes to shader pipeline validation (flutter/engine#40925)
[Impeller] Some fixes to shader pipeline validation
This commit is contained in:
@@ -774,7 +774,12 @@ class ContentContext {
|
||||
// The prototype must always be initialized in the constructor.
|
||||
FML_CHECK(prototype != container.end());
|
||||
|
||||
auto variant_future = prototype->second->WaitAndGet()->CreateVariant(
|
||||
auto pipeline = prototype->second->WaitAndGet();
|
||||
if (!pipeline) {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
auto variant_future = pipeline->CreateVariant(
|
||||
[&opts, variants_count = container.size()](PipelineDescriptor& desc) {
|
||||
opts.ApplyToPipelineDescriptor(desc);
|
||||
desc.SetLabel(
|
||||
|
||||
@@ -114,7 +114,7 @@ static bool LinkProgram(
|
||||
GLint frag_status = GL_FALSE;
|
||||
|
||||
gl.GetShaderiv(vert_shader, GL_COMPILE_STATUS, &vert_status);
|
||||
gl.GetShaderiv(vert_shader, GL_COMPILE_STATUS, &frag_status);
|
||||
gl.GetShaderiv(frag_shader, GL_COMPILE_STATUS, &frag_status);
|
||||
|
||||
if (vert_status != GL_TRUE) {
|
||||
LogShaderCompilationFailure(gl, vert_shader, descriptor.GetLabel(),
|
||||
|
||||
Reference in New Issue
Block a user