MineKhan icon indicating copy to clipboard operation
MineKhan copied to clipboard

Wrong Menu Texture

Open Willard21 opened this issue 3 years ago • 4 comments

When it's supposed to draw the dirt texture, it draws the blocks texture atlas instead. Affects the pause screen, main menu, and chat screens after resizing the window. image

Willard21 avatar Dec 04 '21 15:12 Willard21

Is there something happening when the browser is trying to render these menu screens? Because that may be the thing that is ruining them.

Is there anyway to manually make the screens when a specific key is pressed? That may allow you as a creator to manually ask the canvas / browser to render the dirt texture and additional text if necessary.

Hope it helps :)

Mist-Stego avatar Dec 04 '21 16:12 Mist-Stego

It doesn't happen for me. Actually it happens in multiplayer.

ghost avatar Dec 04 '21 16:12 ghost

The requirement is rendering an entity. Throwing a block in singleplayer will trigger it too.

Willard21 avatar Dec 04 '21 16:12 Willard21

Try putting this: gl.bindTexture(gl.TEXTURE_2D, dirtTexture) after gl.uniform1i(glCache.uSampler2, 1) in initBackgronds

ghost avatar Dec 04 '21 16:12 ghost

Fixed now

Willard21 avatar Apr 14 '23 17:04 Willard21