diff --git a/gapis/api/gles/compat.go b/gapis/api/gles/compat.go index fecf13dbfd..c5008fbc2d 100644 --- a/gapis/api/gles/compat.go +++ b/gapis/api/gles/compat.go @@ -293,7 +293,7 @@ func compat(ctx context.Context, device *device.Instance) (transform.Transformer cmd := *cmd if cmd.Texture != 0 && !c.Objects.Shared.GeneratedNames.Textures[cmd.Texture] { // glGenTextures() was not used to generate the texture. Legal in GLES 2. - tmp := s.AllocDataOrPanic(ctx, VertexArrayId(cmd.Texture)) + tmp := s.AllocDataOrPanic(ctx, cmd.Texture) out.MutateAndWrite(ctx, dID, cb.GlGenTextures(1, tmp.Ptr()).AddRead(tmp.Data())) } @@ -995,10 +995,10 @@ func compat(ctx context.Context, device *device.Instance) (transform.Transformer } case EGLenum_EGL_NATIVE_BUFFER_ANDROID: { - texId := newTexture(id, cb, out) + texID := newTexture(id, cb, out) t := newTweaker(out, dID, cb) defer t.revert(ctx) - t.glBindTexture_2D(ctx, texId) + t.glBindTexture_2D(ctx, texID) img := GetState(s).EGLImages[cmd.Result].Image sizedFormat := img.SizedFormat // Might be RGB565 which is not supported on desktop textureCompat.convertFormat(ctx, GLenum_GL_TEXTURE_2D, &sizedFormat, nil, nil, out, id, cmd) @@ -1011,7 +1011,7 @@ func compat(ctx context.Context, device *device.Instance) (transform.Transformer out.MutateAndWrite(ctx, dID, cb.Custom(func(ctx context.Context, s *api.GlobalState, b *builder.Builder) error { GetState(s).EGLImages[cmd.Result].TargetContext = c.Identifier - GetState(s).EGLImages[cmd.Result].TargetTexture = texId + GetState(s).EGLImages[cmd.Result].TargetTexture = texID return nil })) }