]> OCCT Git - occt-copy.git/commitdiff
0025464: Visualization - provide package for Volume Rendering.
authorisk <isk@opencascade.com>
Thu, 14 Apr 2016 09:04:54 +0000 (12:04 +0300)
committerduv <duv@opencascade.com>
Mon, 29 Aug 2016 10:35:04 +0000 (13:35 +0300)
Add type definitions for BVH_Box.
Add a new method NCollection_Vec3::Convert.
Add define occTexture1D/3D in Declarations.glsl.

src/OpenGl/OpenGl_Texture.cxx

index 9b36091df14aa693279cfab42668fadabe47483c..5e45bd465e5c30af78fc3ea3c673d0757e87857e 100644 (file)
@@ -376,10 +376,9 @@ bool OpenGl_Texture::Init (const Handle(OpenGl_Context)& theCtx,
   myHasMipmaps             = Standard_False;
   myTextFormat             = thePixelFormat;
 #if !defined(GL_ES_VERSION_2_0)
-  if (theTextFormat >= Image_PixMap::ImgGrayF
-   && !theCtx->HasFloatingPointTexture())
+  if (theTextFormat >= Image_PixMap::ImgGrayF && !theCtx->arbTexFloat)
   {
-    TCollection_ExtendedString aMsg ("Error: floating-point textures are not supproted by hardware.");
+    TCollection_ExtendedString aMsg ("Error: floating-point textures are not supported by hardware.");
     theCtx->PushMessage (GL_DEBUG_SOURCE_APPLICATION,
                          GL_DEBUG_TYPE_ERROR,
                          0,