Horde3D
http://horde3d.org/forums/

Mac OS X Lion bugs
http://horde3d.org/forums/viewtopic.php?f=3&t=1638
Page 1 of 1

Author:  Christoph [ 09.02.2012, 22:59 ]
Post subject:  Mac OS X Lion bugs

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 11067 times ]

Author:  Christoph [ 09.02.2012, 23:26 ]
Post subject:  Re: Mac OS X Lion bugs

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

Author:  vibber [ 01.09.2013, 22:40 ]
Post subject:  Re: Mac OS X Lion bugs

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.

Page 1 of 1 All times are UTC + 1 hour
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/