Skip to content

Commit

Permalink
Try to avoid no GL context in crash
Browse files Browse the repository at this point in the history
  • Loading branch information
kappa-maintainer committed Jan 3, 2025
1 parent 87d9b85 commit 242e418
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1469,7 +1469,7 @@
public String call()
{
- return GlStateManager.func_187416_u(7937) + " GL version " + GlStateManager.func_187416_u(7938) + ", " + GlStateManager.func_187416_u(7936);
+ if (Minecraft.func_71410_x().func_152345_ab())
+ if (Minecraft.func_71410_x().func_152345_ab() && Display.isCreated())
+ {
+ return GlStateManager.func_187416_u(7937) + " GL version " + GlStateManager.func_187416_u(7938) + ", " + GlStateManager.func_187416_u(7936);
+ }
Expand Down

0 comments on commit 242e418

Please sign in to comment.