Skip to content

Commit

Permalink
Move ensureIncompleteTexturesCreated() to ContextMtl::syncState()
Browse files Browse the repository at this point in the history
Change-Id: Ibf986f889797a21f1cbc8c412c30d5d84fc77933
  • Loading branch information
kakashidinho committed Apr 17, 2020
1 parent a48e584 commit 16c8f79
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/libANGLE/renderer/metal/ContextMtl.mm
Original file line number Diff line number Diff line change
Expand Up @@ -753,6 +753,9 @@ bool NeedToInvertDepthRange(float near, float far)
{
const gl::State &glState = context->getState();

// Initialize incomplete texture set.
ANGLE_TRY(ensureIncompleteTexturesCreated(context));

for (size_t dirtyBit : dirtyBits)
{
switch (dirtyBit)
Expand Down Expand Up @@ -1721,9 +1724,6 @@ bool NeedToInvertDepthRange(float near, float far)
// instances=0 means no instanced draw.
GLsizei instanceCount = instances ? instances : 1;

// Must be called before the render command encoder is started.
ANGLE_TRY(ensureIncompleteTexturesCreated(context));

if (context->getStateCache().hasAnyActiveClientAttrib())
{
ANGLE_TRY(mVertexArray->updateClientAttribs(context, firstVertex, vertexOrIndexCount,
Expand Down

0 comments on commit 16c8f79

Please sign in to comment.