Several recent trends in how OpenGL integrates into modern computer systems have created new requirements for robustness and security for OpenGL rendering contexts.
Additionally GPU architectures now support hardware fault detection; for example, video memory supporting ECC (error correcting codes) and error detection. OpenGL contexts should be capable of recovering from hardware faults such as uncorrectable memory errors. Along with recovery from such hardware faults, the recovery mechanism can also allow recovery from video memory access exceptions and system software failures. System software failures can be due to device changes or driver failures.
OpenGL queries that that return (write) some number of bytes to a buffer indicated by a pointer parameter introduce risk of buffer overflows that might be exploitable by malware. To address this, queries with return value sizes that are not expressed directly by the parameters to the query itself are given additional API functions with an additional parameter that specifies the number of bytes in the buffer and never writing bytes beyond that limit. This is particularly useful for multi-threaded usage of OpenGL contexts in a "share group" where one context can change objects in ways that can cause buffer overflows for another context's OpenGL queries.
The original ARB_vertex_buffer_object extension includes an issue that explicitly states program termination is allowed when out-of-bounds vertex buffer object fetches occur. Modern graphics hardware is capable well-defined behavior in the case of out-of- bounds vertex buffer object fetches. Older hardware may require extra checks to enforce well-defined (and termination free) behavior, but this expense is warranted when processing potentially untrusted content.
The intent of this extension is to address some specific robustness goals:
| Modifier and Type | Field and Description |
|---|---|
| public static final int | GL_CONTEXT_ROBUST_ACCESS_EXT
Accepted by the |
| public static final int | GL_GUILTY_CONTEXT_RESET_EXT
Returned by GetGraphicsResetStatusEXT. |
| public static final int | GL_INNOCENT_CONTEXT_RESET_EXT
Returned by GetGraphicsResetStatusEXT. |
| public static final int | GL_LOSE_CONTEXT_ON_RESET_EXT
Returned by GetIntegerv and related simple queries when |
| public static final int | GL_NO_RESET_NOTIFICATION_EXT
Returned by GetIntegerv and related simple queries when |
| public static final int | GL_RESET_NOTIFICATION_STRATEGY_EXT
Accepted by the |
| public static final int | GL_UNKNOWN_CONTEXT_RESET_EXT
Returned by GetGraphicsResetStatusEXT. |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public static native int | |
| public static float | |
| public static void | |
| public static void | |
| public static int | |
| public static void | |
| public static void | |
| public static void | |
| public static void | |
| public static void | |
| public static void | |
| public static void | |
| public static void | glReadnPixelsEXT(int x, int y, int width, int height, int format, int type, short[] data)
Array version of: |
| public static void | glReadnPixelsEXT(int x, int y, int width, int height, int format, int type, int[] data)
Array version of: |
| public static void | glReadnPixelsEXT(int x, int y, int width, int height, int format, int type, float[] data)
Array version of: |
| public static native void | |
| public static native void | |
| public static native void | nglReadnPixelsEXT(int x, int y, int width, int height, int format, int type, int bufSize, long data)
|
| GL_CONTEXT_ROBUST_ACCESS_EXT | back to summary |
|---|---|
| public static final int GL_CONTEXT_ROBUST_ACCESS_EXT Accepted by the | |
| GL_GUILTY_CONTEXT_RESET_EXT | back to summary |
|---|---|
| public static final int GL_GUILTY_CONTEXT_RESET_EXT Returned by GetGraphicsResetStatusEXT. | |
| GL_INNOCENT_CONTEXT_RESET_EXT | back to summary |
|---|---|
| public static final int GL_INNOCENT_CONTEXT_RESET_EXT Returned by GetGraphicsResetStatusEXT. | |
| GL_LOSE_CONTEXT_ON_RESET_EXT | back to summary |
|---|---|
| public static final int GL_LOSE_CONTEXT_ON_RESET_EXT Returned by GetIntegerv and related simple queries when | |
| GL_NO_RESET_NOTIFICATION_EXT | back to summary |
|---|---|
| public static final int GL_NO_RESET_NOTIFICATION_EXT Returned by GetIntegerv and related simple queries when | |
| GL_RESET_NOTIFICATION_STRATEGY_EXT | back to summary |
|---|---|
| public static final int GL_RESET_NOTIFICATION_STRATEGY_EXT Accepted by the | |
| GL_UNKNOWN_CONTEXT_RESET_EXT | back to summary |
|---|---|
| public static final int GL_UNKNOWN_CONTEXT_RESET_EXT Returned by GetGraphicsResetStatusEXT. | |
| EXTRobustness | back to summary |
|---|---|
| protected EXTRobustness() | |
| glGetGraphicsResetStatusEXT | back to summary |
|---|---|
public static native int glGetGraphicsResetStatusEXT()
| |
| glGetnUniformfEXT | back to summary |
|---|---|
public static float glGetnUniformfEXT(int program, int location)
| |
| glGetnUniformfvEXT | back to summary |
|---|---|
| public static void glGetnUniformfvEXT(int program, int location, FloatBuffer params) | |
| glGetnUniformfvEXT | back to summary |
|---|---|
| public static void glGetnUniformfvEXT(int program, int location, float[] params) Array version of: | |
| glGetnUniformiEXT | back to summary |
|---|---|
public static int glGetnUniformiEXT(int program, int location)
| |
| glGetnUniformivEXT | back to summary |
|---|---|
| public static void glGetnUniformivEXT(int program, int location, IntBuffer params) | |
| glGetnUniformivEXT | back to summary |
|---|---|
| public static void glGetnUniformivEXT(int program, int location, int[] params) Array version of: | |
| glReadnPixelsEXT | back to summary |
|---|---|
| public static void glReadnPixelsEXT(int x, int y, int width, int height, int format, int type, int bufSize, long data) | |
| glReadnPixelsEXT | back to summary |
|---|---|
| public static void glReadnPixelsEXT(int x, int y, int width, int height, int format, int type, ByteBuffer data) | |
| glReadnPixelsEXT | back to summary |
|---|---|
| public static void glReadnPixelsEXT(int x, int y, int width, int height, int format, int type, ShortBuffer data) | |
| glReadnPixelsEXT | back to summary |
|---|---|
| public static void glReadnPixelsEXT(int x, int y, int width, int height, int format, int type, IntBuffer data) | |
| glReadnPixelsEXT | back to summary |
|---|---|
| public static void glReadnPixelsEXT(int x, int y, int width, int height, int format, int type, FloatBuffer data) | |
| glReadnPixelsEXT | back to summary |
|---|---|
| public static void glReadnPixelsEXT(int x, int y, int width, int height, int format, int type, short[] data) Array version of: | |
| glReadnPixelsEXT | back to summary |
|---|---|
| public static void glReadnPixelsEXT(int x, int y, int width, int height, int format, int type, int[] data) Array version of: | |
| glReadnPixelsEXT | back to summary |
|---|---|
| public static void glReadnPixelsEXT(int x, int y, int width, int height, int format, int type, float[] data) Array version of: | |
| nglGetnUniformfvEXT | back to summary |
|---|---|
| public static native void nglGetnUniformfvEXT(int program, int location, int bufSize, long params) | |
| nglGetnUniformivEXT | back to summary |
|---|---|
| public static native void nglGetnUniformivEXT(int program, int location, int bufSize, long params) | |
| nglReadnPixelsEXT | back to summary |
|---|---|
| public static native void nglReadnPixelsEXT(int x, int y, int width, int height, int format, int type, int bufSize, long data) | |