Hi. Minecraft has only been running with my integrated GPU (Intel UHD Graphics 360), so I got Minecraft to use my external GPU (NVIDIA GeForce RTX 2060) by going to settings and setting C:\Program Files (x86)\Minecraft Launcher\runtime\jre-x64\bin\javaw.exe to my "High Performance GPU".
Screenshot:
The problem is that when I try to run Minecraft it crashes with Error: java.lang.RuntimeException: GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT.
As far as I can tell I have the latest drivers and updates. It would be very helpful if someone could help me out. I am running Minecraft: Java Edition 1.15.2.
Details:
Operating System: Windows 10.0.18363
Processor: Intel(R) Core(TM) i7-9700 CPU @ 3.00GHz
Memory: 32GB
External GPU Driver: NVIDIA GeForce Game Ready Driver 442.19
Best Answer
What you're encountering is quite weird, as other commenters have said it seems to imply a corrupt texture in the game. (Did you manage to pinpoint when exactly it crashes? Maybe when you look at a specific object in the game?)
Anyways, when dealing with issues of this sort, the answer generally lies in updating this and reinstalling that. (Worst case scenario even reinstalling windows).
So let me walk you through that.
Step 1: Reinstall Minecarft
Then try running the game again on your nvidia card, see if it still crashes.
Step 2: Update things...
If that didn't do the trick, you need to make sure your drivers and Java are both up to date as well.
For your Nvidia drivers, right click your desktop, go to 'Nvidia Control Panel', in there go to 'System Information' (bottom left corner). There you can see your current driver version. (First item under 'details').
Now go to one of Nvidia's driver pages
In there select the appropriate graphics card/os combination, and hit search to find the latest graphics driver.
For Java, you can go to this page:
And download the latest Java JRE and JDK (these will not be the same version!), also for JRE make sure you get both the 32-bit(i586) and 64-bit(x64) versions.
Now you can try running minecraft again, if it didn't work after a full reinstall, it should hopefully work by now.
Step 3: Fully reinstall your graphic drivers.
If things still aren't working, try doing a full reinstall of your Nvidia drivers, this can get a bit technical so here's a guide for how to do this.
CLEAN PREVIOUS TRACES
THE FOLLOWING STEPS WILL NOT ALLOW ACCESS TO THE INTERNET, SAVE THIS TEXT TO REFER TO.
DRIVER INSTALLATION
Now try minecraft yet again.
Step 4: Defragment your hard drive/partition
Maybe the cause of your problem is fragmentation of your hard drive/partition (unlikely if you're on an SSD). To defrag your hard drive go to This Pc>Right Click on Local Disk (C:)> Properties> Tools> Optimize
This of course assumes minecraft is installed on your C:\ Drive.
After this, repeat step 1 and try again. There is however a small chance your hard drive might be failing rather than just being sligthly fragmented so download a program (any program that can do it) to check your hard drive health via SMART. (I suggest CrystaldiskInfo)
Step 5: Turn to mods
If it still isn't working, and you're still getting the same error allowing us to assume that you have corrupted textures, then I guess the final option just has to be to download a texture pack to override that corrupted texture (kudos if you can pinpoint the exact texture; then maybe you won't need an entire texture pack).
There are a lot of places where you can get texture packs for minecraft, and I don't feel comfortable recommending any of them because all of them somehow manage to look shady, maybe with the exception of curseforge. Since you like the vanilla textures so much, maybe you would be well served with a texture pack that tries to improve upon the vanilla textures rather than replace them, a great example and personal favorite of mine is called "Default 3D" which creates the illusion of depth (probably using normalmaps...) on the textures.
Here's how to install a texture pack.
If even now after following all the above steps and even trying to replace the problematic textures with a texture pack still hasn't solved the problem, then I'm finally out of ideas.