Hi,
I noticed a problem generating cubemap mipmaps on OSX. According to
http://www.opengl.org/sdk/docs/man3/xht ... Mipmap.xml:
Quote:
GL_INVALID_OPERATION is generated if target is GL_TEXTURE_CUBE_MAP and the texture bound to the GL_TEXTURE_CUBE_MAP target of the active texture unit is not cube complete.
A possible fix:
Code:
Index: Horde3D/Source/Horde3DEngine/egRendererBase.cpp
===================================================================
--- Horde3D/Source/Horde3DEngine/egRendererBase.cpp (revision 763)
+++ Horde3D/Source/Horde3DEngine/egRendererBase.cpp (working copy)
@@ -466,12 +466,8 @@
inputFormat, inputType, pixels );
}
- if( tex.genMips )
- {
- glEnable( tex.type ); // Workaround for ATI driver bug
+ if( tex.genMips && ( tex.type != GL_TEXTURE_CUBE_MAP || slice == 5 ) )
glGenerateMipmapEXT( tex.type );
- glDisable( tex.type );
- }
glBindTexture( tex.type, 0 );
if( _texSlots[15].texObj )