Commit cb34975
committed
Fix crash after OpenGL::detach in the presence of buffered child components
The crash fixed by this commit could be triggered by attaching an OpenGL
context to a component, calling setBufferedToImage (true) on one of its
child components, and then detaching the OpenGL context from the parent.
Since 4ba01a8 we are creating images
with the current rendering context's native image type, so the above
scenario would leave an image buffer that references the detached
context.1 parent 2da6a5f commit cb34975
1 file changed
+9
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1102 | 1102 | | |
1103 | 1103 | | |
1104 | 1104 | | |
| 1105 | + | |
| 1106 | + | |
| 1107 | + | |
| 1108 | + | |
| 1109 | + | |
| 1110 | + | |
| 1111 | + | |
| 1112 | + | |
1105 | 1113 | | |
1106 | 1114 | | |
1107 | 1115 | | |
1108 | 1116 | | |
1109 | | - | |
| 1117 | + | |
1110 | 1118 | | |
1111 | 1119 | | |
1112 | 1120 | | |
| |||
0 commit comments