-
Bug
-
Resolution: Fixed
-
P3
-
8
-
b40
-
generic
-
generic
-
Verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2224502 | 7u6 | Dmitry Cherepanov | P3 | Closed | Fixed | b13 |
Here's the code used to configure OpenGL to get texture coordinates, colors and vertex data from our arrays
src/share/native/sun/java2d/opengl/OGLVertexCache.c
glTexCoordPointer(..., vertexCache);
glColorPointer(..., vertexCache + 2);
glVertexPointer(..., vertexCache + 3);
glEnableClientState(GL_TEXTURE_COORD_ARRAY);
glEnableClientState(GL_COLOR_ARRAY);
glEnableClientState(GL_VERTEX_ARRAY);
It's called from InitVertexCache() on the flusher thread and it's currently done only once per application. That is, the initialization changes the state of the *current* OpenGL context (NSOpenGLContext on Mac) only and the state isn't shared across multiple NSOpenGLContexts.
The problem becomes visible in dual-screen environment where we instantiate separate off-screen NSOpenGLContext for each screen (see CGLGraphicsConfig.m).
src/share/native/sun/java2d/opengl/OGLVertexCache.c
glTexCoordPointer(..., vertexCache);
glColorPointer(..., vertexCache + 2);
glVertexPointer(..., vertexCache + 3);
glEnableClientState(GL_TEXTURE_COORD_ARRAY);
glEnableClientState(GL_COLOR_ARRAY);
glEnableClientState(GL_VERTEX_ARRAY);
It's called from InitVertexCache() on the flusher thread and it's currently done only once per application. That is, the initialization changes the state of the *current* OpenGL context (NSOpenGLContext on Mac) only and the state isn't shared across multiple NSOpenGLContexts.
The problem becomes visible in dual-screen environment where we instantiate separate off-screen NSOpenGLContext for each screen (see CGLGraphicsConfig.m).
- backported by
-
JDK-2224502 [macosx] duplicate OGL context state changes related to vertex cache
-
- Closed
-
- relates to
-
JDK-7154505 [macosx] NetBeans sometimes starts with no text rendered
-
- Closed
-
-
JDK-2223203 [macosx] Text disappears when moving from external monitor to laptop
-
- Closed
-