United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6666931 D3D/OGL: BufferedContext.invalidateContext doesn't reset native state
JDK-6666931 : D3D/OGL: BufferedContext.invalidateContext doesn't reset native state

Details
Type:
Bug
Submit Date:
2008-02-22
Status:
Closed
Updated Date:
2010-10-14
Project Name:
JDK
Resolved Date:
2008-03-04
Component:
client-libs
OS:
generic
Sub-Component:
2d
CPU:
generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
6u10
Fixed Versions:
6u10 (b13)

Related Reports
Relates:

Sub Tasks

Description
The BufferedContext.invalidateContext() only resets the state of the 
BufferedContext, but not the native one. This may lead to 
de-synchronization between these.

For example, if a transform is set, and then context is invalidated,
the native device may have the transform set.

                                    

Comments
EVALUATION

We need to reset the native state (transform, clip, etc).

This bug was uncovered by the fix for 6664068 where we
sometimes invalidate the context.
                                     
2008-02-22
SUGGESTED FIX

http://sa.sfbay.sun.com/projects/java2d_data/6u10/6666931.0
                                     
2008-02-23



Hardware and Software, Engineered to Work Together