| [ Return to Bugs & Features | Roadmap 1.1 | SVN ⇄ GIT ]
STR #1372
Application: | FLTK Library |
Status: | 1 - Closed w/Resolution |
Priority: | 2 - Low, e.g. a documentation error or undocumented side-effect |
Scope: | 3 - Applies to all machines and operating systems |
Subsystem: | OpenGL |
Summary: | valid() insufficient for some purposes. |
Version: | 1.1-current |
Created By: | wavexx |
Assigned To: | matt |
Fix Version: | 1.1-current (SVN: v5322) |
Update Notification: | |
Trouble Report Files:
Trouble Report Comments:
|
#1 | wavexx 07:13 Jul 28, 2006 |
| [see http://www.fltk.org/str.php?L1370]
In Gl_Window, the valid() state is invalidated on resize as well as real context invalidation. However, for several operations (like texture loading etc), I need to know wheter the context has _really_ be recreated or not.
This patch adds a new ctx_valid method that works just like valid(), but it's invalidated only on real context invalidation. valid() continues to work as before. Old code will continue to work as espected, but new code can take advantage of ctx_valid instead of manual context tracking.
Breaks the ABI. | |
|
#2 | matt 02:49 Aug 17, 2006 |
| Fixed in Subversion repository.
Your patch broke the ABI, so I implemented the changes a bit differently. The result should be the same though. | |
[ Return to Bugs & Features ]
|
| |