@@ -1138,7 +1138,7 @@ public boolean isSwapBuffers() {
11381138 /**
11391139 * True to enable the creation of an OpenCL context.
11401140 *
1141- * @param support
1141+ * @param support whether to create the context or not
11421142 */
11431143 public void setOpenCLSupport (boolean support ) {
11441144 putBoolean ("OpenCL" , support );
@@ -1163,4 +1163,28 @@ public void setOpenCLPlatformChooser(Class<? extends PlatformChooser> chooser) {
11631163 public String getOpenCLPlatformChooser () {
11641164 return getString ("OpenCLPlatformChooser" );
11651165 }
1166+
1167+ /**
1168+ * Determine if the renderer will be run in Graphics Debug mode, which means every openGL Call is checked and
1169+ * if it returns an error code, throw a {@link com.jme3.renderer.RendererException}.<br />
1170+ * Without this, many openGL calls might fail without notice, so turning it on is recommended for development.
1171+ *
1172+ * @return whether the context will be run in Graphics Debug Mode or not
1173+ * @see #setGraphicsDebug(boolean)
1174+ */
1175+ public boolean isGraphicsDebug () {
1176+ return getBoolean ("GraphicsDebug" );
1177+ }
1178+
1179+ /**
1180+ * Set whether the renderer will be run in Graphics Debug mode, which means every openGL Call is checked and
1181+ * if it returns an error code, throw a {@link com.jme3.renderer.RendererException}.<br />
1182+ * Without this, many openGL calls might fail without notice, so turning it on is recommended for development.
1183+ *
1184+ * @param debug whether the context will be run in Graphics Debug Mode or not
1185+ * @see #isGraphicsDebug()
1186+ */
1187+ public void setGraphicsDebug (boolean debug ) {
1188+ putBoolean ("GraphicsDebug" , debug );
1189+ }
11661190}
0 commit comments