Skip to content

Commit 16c8f79

Browse files
committed
Move ensureIncompleteTexturesCreated() to ContextMtl::syncState()
Change-Id: Ibf986f889797a21f1cbc8c412c30d5d84fc77933
1 parent a48e584 commit 16c8f79

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/libANGLE/renderer/metal/ContextMtl.mm

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -753,6 +753,9 @@ bool NeedToInvertDepthRange(float near, float far)
753753
{
754754
const gl::State &glState = context->getState();
755755

756+
// Initialize incomplete texture set.
757+
ANGLE_TRY(ensureIncompleteTexturesCreated(context));
758+
756759
for (size_t dirtyBit : dirtyBits)
757760
{
758761
switch (dirtyBit)
@@ -1721,9 +1724,6 @@ bool NeedToInvertDepthRange(float near, float far)
17211724
// instances=0 means no instanced draw.
17221725
GLsizei instanceCount = instances ? instances : 1;
17231726

1724-
// Must be called before the render command encoder is started.
1725-
ANGLE_TRY(ensureIncompleteTexturesCreated(context));
1726-
17271727
if (context->getStateCache().hasAnyActiveClientAttrib())
17281728
{
17291729
ANGLE_TRY(mVertexArray->updateClientAttribs(context, firstVertex, vertexOrIndexCount,

0 commit comments

Comments
 (0)