OpenSceneGraph Forum Forum Index OpenSceneGraph Forum
Official forum which mirrors the existent OSG mailing lists. Messages posted here are forwarded to the mailing list and vice versa.
 
   FAQFAQ    SearchSearch    MemberlistMemberlist    RulesRules    UsergroupsUsergroups    RegisterRegister 
 Mail2Forum SettingsMail2Forum Settings  ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
   AlbumAlbum  OpenSceneGraph IRC ChatOpenSceneGraph IRC Chat   SmartFeedSmartFeed 

glValidateProgram too early


 
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> Submission
View previous topic :: View next topic  
Author Message
Mathieu (Mathieu MARACHE)
Appreciator


Joined: 29 Oct 2009
Posts: 104

PostPosted: Tue Aug 29, 2017 9:41 am    Post subject:
glValidateProgram too early
Reply with quote

Quote:
Under macOS the glValidateProgram reports too manyfalse negatives (errors) about missing buffers, etc..From the internet https://stackoverflow.com/questions/15335510/opengl-glvalidateprogram-error-on-mac-os-x :« […] The purpose of glValidateProgram is not to use it as an added "check" step after linking the program, because the GL and application state is hardly ready for actually using that program at this point, probably it's even before we get around to initializing the default framebuffer (its bitdepth, its multisample buffers, etc), and that's what the error hints at.An appropriate place to call glValidateProgram would be right before you make a real render call. »I created Pull Request for removing the call to validateProgram on macOS targets : https://github.com/openscenegraph/OpenSceneGraph/pull/334
--
nǝıɥʇɐƜ

------------------
Post generated by Mail2Forum
Back to top
View user's profile Send private message
robertosfield
OSG Project Lead


Joined: 18 Mar 2009
Posts: 11152

PostPosted: Tue Aug 29, 2017 9:52 am    Post subject:
glValidateProgram too early
Reply with quote

Thanks PR merged.


On 29 August 2017 at 10:39, Mathieu MARACHE < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)> wrote:
Quote:
Quote:
Under macOS the glValidateProgram reports too manyfalse negatives (errors) about missing buffers, etc..From the internet https://stackoverflow.com/questions/15335510/opengl-glvalidateprogram-error-on-mac-os-x :« […] The purpose of glValidateProgram is not to use it as an added "check" step after linking the program, because the GL and application state is hardly ready for actually using that program at this point, probably it's even before we get around to initializing the default framebuffer (its bitdepth, its multisample buffers, etc), and that's what the error hints at.An appropriate place to call glValidateProgram would be right before you make a real render call. »I created Pull Request for removing the call to validateProgram on macOS targets : https://github.com/openscenegraph/OpenSceneGraph/pull/334
--
nǝıɥʇɐƜ




_______________________________________________
osg-submissions mailing list
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org



------------------
Post generated by Mail2Forum
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> Submission All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Similar Topics
Topic Author Forum Replies Posted
No new posts Early events handling Riccardo Corsi General 1 Mon Feb 13, 2017 3:04 pm View latest post
No new posts Early patch: cmake -DOSG_WINDOWING_SY... kintel General 0 Wed Nov 09, 2011 1:54 pm View latest post


Board Security Anti Bot Question MOD - phpBB MOD against Spam Bots
Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP