mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 03:21:49 +00:00
Inventory blocks render fix
This commit is contained in:
parent
de92cff0aa
commit
163fdd2e37
4 changed files with 7 additions and 5 deletions
|
|
@ -138,7 +138,7 @@ void HudRenderer::drawDebug(int fps, bool occlusion){
|
|||
}
|
||||
|
||||
void HudRenderer::drawInventory(Player* player) {
|
||||
Texture* blocks = assets->getTexture("block");
|
||||
Texture* blocks = assets->getTexture("block_tex");
|
||||
uint size = 48;
|
||||
uint step = 64;
|
||||
uint inv_cols = 10;
|
||||
|
|
@ -229,7 +229,7 @@ void HudRenderer::draw(){
|
|||
uishader->uniformMatrix("u_projview", uicamera->getProjection()*uicamera->getView());
|
||||
|
||||
// Chosen block preview
|
||||
Texture* blocks = assets->getTexture("block");
|
||||
Texture* blocks = assets->getTexture("block_tex");
|
||||
|
||||
batch->texture(nullptr);
|
||||
batch->color = vec4(1.0f);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue