LWJGL
February 07, 2012, 05:06:33 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: LWJGL 2.8.3 released!
 
   Home   Help Search Login Register  



Pages: 1 2 [3] 4 5
  Print  
Author Topic: [FIXED] new ATI 10.1 drivers don't support some GL1x functions?  (Read 13934 times)
spasi
Nerdus Imperius
*****
Posts: 606



WWW
« Reply #30 on: February 08, 2010, 11:02:19 »

Markus, could you please update Minecraft to the latest build so we can test and get an official release out asap?
Logged

Notch
Newbie
*
Posts: 38


« Reply #31 on: February 08, 2010, 11:52:56 »

Done!

I get this now:

Code:
LWJGL version: 2.3
GL RENDERER: GeForce GTX 260/PCI/SSE2
GL VENDOR: NVIDIA Corporation
GL VERSION: 3.2.0
OpenGL 3.0: true
OpenGL 3.1: true
OpenGL 3.2: true
ARB_compatibility: true
PROFILE MASK: 0
CORE PROFILE: false
COMPATIBILITY PROFILE: false
Logged
spasi
Nerdus Imperius
*****
Posts: 606



WWW
« Reply #32 on: February 08, 2010, 12:04:26 »

Works fine on nvidia now right? No exceptions or anything?
Logged

Notch
Newbie
*
Posts: 38


« Reply #33 on: February 08, 2010, 12:51:30 »

Flawlessly.
Logged
spasi
Nerdus Imperius
*****
Posts: 606



WWW
« Reply #34 on: February 08, 2010, 13:54:13 »

Works on ATI 10.1 too, so I guess we can consider this fixed.
Logged

Rene
Regular nerd
**
Posts: 78


« Reply #35 on: February 08, 2010, 14:24:38 »

Thanks for your efforts, much appreciated Smiley
Logged

When I am king, they shall not have bread and shelter only, but also teachings out of books, for a full belly is little worth where the mind is starved - Mark Twain
Notch
Newbie
*
Posts: 38


« Reply #36 on: February 08, 2010, 16:38:35 »

Now it's not working on some other driver version for ATi. I don't know which driver version that is, though, sorry:
It's a "XFX ATI RADEON HD5870 1GB GDDR5"

Code:
Reading certificates from 2388 http://minecraft.net/indev/client/lwjgl_util_applet.jar?v=14 | C:\Users\ez\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\7\7df4b9c7-17664ff0.idx
Laddade bild: http://minecraft.net/indev/client/logo_small.png
Laddade bild: jar:http://minecraft.net/indev/client/lwjgl_util_applet.jar?v=14!/appletprogress.gif
Reading certificates from 2152 http://minecraft.net/indev/client/lzma.jar?v=14 | C:\Users\ez\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\0\3b677940-19b1b04b.idx
43
org.lwjgl.opengl.OpenGLException: Invalid operation (1282)
at org.lwjgl.opengl.Util.checkGLError(Util.java:54)
at org.lwjgl.opengl.Display.makeCurrentAndSetSwapInterval(Display.java:884)
at org.lwjgl.opengl.Display.create(Display.java:847)
at org.lwjgl.opengl.Display.create(Display.java:771)
at org.lwjgl.opengl.Display.create(Display.java:752)
at net.minecraft.client.d.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Logged
spasi
Nerdus Imperius
*****
Posts: 606



WWW
« Reply #37 on: February 09, 2010, 02:48:52 »

This is a context creation error and since you are not using ContextAttribs it shouldn't be any different from old LWJGL versions. Can that user run the non-indev versions of Minecraft? The same error should happen there, I'll investigate further if not.
Logged

Notch
Newbie
*
Posts: 38


« Reply #38 on: February 09, 2010, 03:02:18 »

She could play the indev version up until yesterday, she's played the old versions a lot. This error was still there after a reboot.
Logged
Notch
Newbie
*
Posts: 38


« Reply #39 on: February 09, 2010, 06:37:04 »

For reference: http://www.minecraftforum.net/viewtopic.php?f=35&t=7065
Logged
Matzon
Administrator
Demigod
*****
Posts: 2163



« Reply #40 on: February 09, 2010, 07:26:04 »

pardon my ignorance, but why do we have to update code when ATI updates its drivers?
Logged

http://certusgames.com (Free Online Multiplayer Java Games)
http://lwjgl.org (OpenGL/OpenAL for Java)
spasi
Nerdus Imperius
*****
Posts: 606



WWW
« Reply #41 on: February 09, 2010, 07:28:24 »

Fixed on next build. I had to revert to an old driver version to test this and of course ATI behaved exactly like NV before 10.1 (ARB_compatibility exposed), with the difference that it generates an INVALID_OPERATION error if you try to retrieve GL_CONTEXT_PROFILE_MASK (which is what I had to do to fix the original 10.1 problem). Roll Eyes
Logged

spasi
Nerdus Imperius
*****
Posts: 606



WWW
« Reply #42 on: February 09, 2010, 09:53:43 »

The build is up if you want to update Minecraft.
Logged

kappa
Administrator
Nerdus Imperius
*****
Posts: 889



« Reply #43 on: February 09, 2010, 14:07:46 »

just curious how exactly did you fix this ati problem? do you now have ati driver version specific hacks or general code that works the same everywhere?
Logged
spasi
Nerdus Imperius
*****
Posts: 606



WWW
« Reply #44 on: February 09, 2010, 15:43:30 »

general code that works the same everywhere?

This. I added another condition to the code that forces forward compatible mode (fc mode = no deprecated functions are loaded). That condition is basically checking a GL3.2 core mask (GL_CONTEXT_PROFILE_MASK) to see if the compatibility profile has been loaded. If either ARB_compatibility or the compatibility profile are available, forward compatible mode isn't forced (the application can still enable it if desirable).

So, the code is general, but parts of it only apply to specific implementations. The driver behavior I've seen so far for the default context creation:

- NVIDIA: ARB_compatibility exposed, GL_CONTEXT_PROFILE_MASK returns 0.
- ATI pre 10.1: ARB_compatibility exposed, retrieving GL_CONTEXT_PROFILE_MASK produces an INVALID_OPERATION error.
- ATI 10.1: ARB_compatibility *not* exposed, GL_CONTEXT_PROFILE_MASK returns GL_CONTEXT_COMPATIBILITY_PROFILE_BIT.
Logged

Pages: 1 2 [3] 4 5
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines
SMFAds for Free Forums
Valid XHTML 1.0! Valid CSS!