Skip to content

Commit

Permalink
VG Context need to be available earlier
Browse files Browse the repository at this point in the history
  • Loading branch information
mario-deluna authored Aug 7, 2024
1 parent d4da526 commit 95a5d85
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Quickstart/QuickstartApp.php
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,10 @@ public function render(float $deltaTime) : void
$sceneColorOptions->internalFormat = GL_RGBA;
$sceneColorAtt = $context->pipeline->createColorAttachment($appRenderTarget, 'quickstartColor', $sceneColorOptions);

// store the VG context in the pipeline container
// this will allow subsystem to access the VG context as well
$data->set($this->vg);

// run the render callback if available
$this->options->render?->__invoke($this, $context, $appRenderTarget);
$this->setupDrawBefore($context, $appRenderTarget);
Expand All @@ -252,10 +256,6 @@ function(PipelineContainer $data, PipelineResources $resources) use($appRenderTa
$renderTarget->height() / $appContentScale,
$appContentScale
);

// store the VG context in the pipeline container
// this will allow subsystem to access the VG context as well
$data->set($this->vg);

$this->draw($context, $renderTarget);

Expand Down Expand Up @@ -340,4 +340,4 @@ public function shouldStop() : bool
{
return $this->window->shouldClose();
}
}
}

0 comments on commit 95a5d85

Please sign in to comment.