mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 11:01:49 +00:00
Added gui_util
This commit is contained in:
parent
e3f7f7218f
commit
2055cff0be
11 changed files with 122 additions and 35 deletions
|
|
@ -239,7 +239,7 @@ void HudRenderer::drawContentAccess(const GfxContext& ctx, Player* player) {
|
|||
batch->render();
|
||||
|
||||
// blocks & items
|
||||
blocksPreview->begin();
|
||||
blocksPreview->begin(&ctx.getViewport());
|
||||
{
|
||||
Window::clearDepth();
|
||||
GfxContext subctx = ctx.sub();
|
||||
|
|
@ -328,7 +328,7 @@ void HudRenderer::draw(const GfxContext& ctx){
|
|||
batch->color = vec4(1.0f);
|
||||
batch->render();
|
||||
|
||||
blocksPreview->begin();
|
||||
blocksPreview->begin(&ctx.getViewport());
|
||||
{
|
||||
Window::clearDepth();
|
||||
GfxContext subctx = ctx.sub();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue