Skip to main content

Crashes when entering fullscreen

What to do if you encounter crashes when entering fullscreen mode

note

The error can appear similar to these messages

Couldn't toggle fullscreen
org.lwjgl.LWJGLException: Failed to set display mode (-2).
at org.lwjgl.opengl.WindowsDisplay.nSwitchDisplayMode(Native Method) ~[lwjgl-2.9.4-nightly-20150209.jar:?]
at org.lwjgl.opengl.WindowsDisplay.switchDisplayMode(WindowsDisplay.java:359) ~[lwjgl-2.9.4-nightly-20150209.jar:?]
at org.lwjgl.opengl.Display.switchDisplayMode(Display.java:359) ~[lwjgl-2.9.4-nightly-20150209.jar:?]
at org.lwjgl.opengl.Display.setDisplayModeAndFullscreenInternal(Display.java:507) ~[lwjgl-2.9.4-nightly-20150209.jar:?]
at org.lwjgl.opengl.Display.setFullscreen(Display.java:475) ~[lwjgl-2.9.4-nightly-20150209.jar:?]
...

This may also be followed by another message

Unreported exception thrown!
java.lang.RuntimeException: No OpenGL context found in the current thread.
at org.lwjgl.opengl.GLContext.getCapabilities(GLContext.java:124) ~[lwjgl-2.9.4-nightly-20150209.jar:?]
at org.lwjgl.opengl.GL11.glGetError(GL11.java:1299) ~[lwjgl-2.9.4-nightly-20150209.jar:?]

If your game crashes when trying to toggle the fullscreen mode, try the following steps:

note

Before doing any troubleshooting below

Install the latest graphics driver for your system (see How to install GPU drivers)

If you use an NVIDIA GPU and use Windows, enable "Enable resolutions not exposed by the display"

If you applied any overclocks or virtual resolutions that are higher than what your display officially supports, disable these first.

The below options should be done in this order.

Solution 1: Enable Borderless Fullscreen

  1. Launch the CheatBreaker Client
  2. Go into any world/server
  3. Open the Mod Menu (default Right Shift) > Select the ⚙️ Icon > CheatBreaker Settings
  4. In the search box, type in Borderless Fullscreen
  5. Turn on Borderless Fullscreen

Solution 2: Change CheatBreaker launch resolution

  1. Open the CheatBreaker Launcher
  2. Go to the SETTINGS on the top bar
  3. Select Presets next to the Resolution setting
  4. Select one of the available resolutions

Solution 3: Disable launching in fullscreen

This should be a last resort if the above solutions do not work.

  1. Disable Fullscreen in the CheatBreaker launcher
    1. Open the CheatBreaker Launcher
    2. Go to the SETTINGS on the top bar
    3. Uncheck Fullscreen if this is enabled
  2. Disable fullscreen in-game
    1. Open your file manager and go to your Minecraft folder
      • Windows: %APPDATA%\.minecraft
      • macOS: ~/Library/Application Support/minecraft
      • Linux: ~/.minecraft
    2. Find and open options.txt
    3. Find fullscreen and set it from true to false
    4. Click CTRL + S to save your changes