I posted this question on the lwjgl forum but due to the server meltdown I thought I would ask it over here:
Pbuffer pbuffer = new Pbuffer(800,600,new PixelFormat(),null,null);
pbuffer.makeCurrent();
GL11.glClear(GL11.GL_COLOR_BUFFER_BIT);
ByteBuffer bytes = ByteBuffer.allocateDirect(800*600*3);
GL11.glReadPixels(0,0,800,600,GL11.GL_RGB,GL11.GL_UNSIGNED_BYTE,bytes);
Why does this code give me an OpenGL 1282 (invalid opperation) error?
This is on Ubuntu Linux using the latest NVidia drivers.
