Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GPU/driver lacks sufficient vertex uniform vectors for QuadShader #16

Closed
neerajnagi opened this issue Dec 12, 2012 · 1 comment
Closed

Comments

@neerajnagi
Copy link

using play 1.5.1
as soon as I go for drawing anything on graphics(). it gives nullpointer exception with this warning
GPU/driver lacks sufficient vertex uniform vectors for QuadShader

[java] GPU/driver lacks sufficient vertex uniform vectors for QuadShader.
[java] Exception in thread "main" java.lang.NullPointerException
[java] at playn.java.JavaImage.draw(JavaImage.java:84)
[java] at playn.java.JavaAsyncImage.draw(JavaAsyncImage.java:32)
[java] at playn.java.JavaCanvas.drawImage(JavaCanvas.java:118)
[java] at playn.java.JavaCanvas.drawImage(JavaCanvas.java:105)

and the application goes into 'not responding' state(i m using window)

@samskivert
Copy link
Member

Your problem is that you are using asynchronous images before waiting for them to load. It has nothing to do with QuadShader.

Either wait for images to load, or use Assets.getImageSync.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants