Horde3D

Next-Generation Graphics Engine
It is currently 18.11.2019, 01:33

All times are UTC + 1 hour




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Mac OS X Lion bugs
PostPosted: 09.02.2012, 22:59 
Offline

Joined: 09.02.2012, 22:38
Posts: 26
Hi,

pretty much every Horde3D application fails on OS X Lion at glEnable(GL_TEXTURE_2D) with GL_INVALID_OPERATION. The callee is RenderDevice::uploadTextureData()
Code:
glEnable( tex.type );  // Workaround for ATI driver bug
glGenerateMipmapEXT( tex.type );
glDisable( tex.type );


I think the problem is, that glEnable(GL_TEXTURE_2D) is not part of the OpenGL 3.2 Core Profile. Commenting glEnable and glDisable will make GL_INVALID_OPERATION go away, but the whole context looks still broken (screenshot).
Any ideas what could have went wrong? Note: Windows+Linux works :mrgreen:

Cheers,
Christoph


Attachments:
File comment: Bugged Chicago Demo on OS X
osx-fail.jpg
osx-fail.jpg [ 80.4 KiB | Viewed 4469 times ]
Top
 Profile  
Reply with quote  
 Post subject: Re: Mac OS X Lion bugs
PostPosted: 09.02.2012, 23:26 
Offline

Joined: 09.02.2012, 22:38
Posts: 26
Its working now with glEnable()/glDisable() removed.

CMake didn't copy Content/* directory to Bundle (Chicago.app/Content/*) as I'd expected and the demo does not fail if resources are missing. The build system could use some love. Its odd, that executables and the libraries are in diffrent locations. Something like this should be added to the demos:
Code:
   if ( !h3dutLoadResourcesFromDisk( _contentDir.c_str() ) ) throw "fail";


Regards


Top
 Profile  
Reply with quote  
 Post subject: Re: Mac OS X Lion bugs
PostPosted: 01.09.2013, 22:40 
Offline

Joined: 01.09.2013, 22:12
Posts: 2
Hi there,
I am a first time user trying to get a sample application working in order to see how Horde works.
I would be very grateful if you could help me get started.

Everything is building fine in Xcode after I created the Xcode project with cmake. but the Chicago app for instance is only showing graphic garbage. Could you perhaps provide a download with all the files needed for the sample app?

It doesn't have to be the Chicago example. It could be something else as long as I can easily build it in Xcode 4.6 and illustrate how to get started with Horde.
Thank you very much for any help.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


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 post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group