Added gui_util
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user