English 中文(简体)
无法获得的“glActiveTexture”方法
原标题:Method "glActiveTexture" not available

I m starting to get into libGDX game engine. I have copied this example and tried to run. It runs ok as android application, but when i want it to run as java application it throws the following error.

Exception in thread "Thread-2" javax.media.opengl.GLException: javax.media.opengl.GLException: Method "glActiveTexture" not available

最佳回答

或许应当修改这一行文:GL10 gl = Gdx.graphics.getGL10(); to GL20 gl = Gdx.graphics.getGL20();。 由于根据开放式GL官方文件:

只有在全球升温潜能值为1.3或大于1.3的情况下,或者如果ARB_多面图在GetString以GL_为理由而要求时,列入冰川融化物的扼杀中,才会支持冰川融化。 EXTENSIONS。

不同之处可能在于,视像系统在违约时提供了一个开放的G1.1环境,而只是通过延期提供所有额外功能(即:http://c.org/cp_gl activeTextureARB(>>>,而 Java开放式工可能不使用这些功能)

问题回答

I`ve got this error. GLView (or other program to view GL version) show me, that my current OpenGL is 1.1 and this method is only on 1.3 and higher. My solution wat to update drivers with Windows Update (My driver - ATI technologies Inc. driver update for ATI radeon). After update to version 3.0 all is fine.





相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签