[Bprocessor-commit] gl/src/net/sourceforge/bprocessor/gl/view View.java, 1.239, 1.240
Status: Pre-Alpha
Brought to you by:
henryml
From: rimestad <rim...@us...> - 2007-10-03 10:07:00
|
Update of /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/view In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv2382/src/net/sourceforge/bprocessor/gl/view Modified Files: View.java Log Message: Ugly hack but makes the gl go on even on errors. If gl.glSelectBugger is called when the rendermode is different from GL_RENDER a exception is thrown. If there is a error during selection drawing the rendermode ins't set back to GL_RENDER and therefore a error can acure. This fixes it but there sould be done some analysis instead finding the error and recover Index: View.java =================================================================== RCS file: /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/view/View.java,v retrieving revision 1.239 retrieving revision 1.240 diff -C2 -d -r1.239 -r1.240 *** View.java 2 Oct 2007 13:51:43 -0000 1.239 --- View.java 3 Oct 2007 10:07:00 -0000 1.240 *************** *** 674,677 **** --- 674,678 ---- if (picking > 0) { try { + gl.glRenderMode(GL.GL_RENDER); selectBuffer = BufferUtil.newIntBuffer(selectionLength); gl.glSelectBuffer(selectionLength, selectBuffer); |