conversion from double buffer to float arrays

well I am going to translate a pair of mouse coords to world coord… Todo that I need todo this

            GL11.glGetDouble(GL11.GL_PROJECTION_MATRIX, projection); 
            GL11.glGetDouble(GL11.GL_MODELVIEW_MATRIX, model); 
            GL11.glGetInteger(GL11.GL_VIEWPORT, viewPort); 

projection,model,viewport are all doublebuffers. But since 0.9?? GLU uses arrays

GLU.gluUnProject

So I need to convert. How do I do that the easiste way?

You can use glGetFloat to get the matrices as float buffers. Then use FloatBuffer’s bulk get to pass the data to float[]s.