From b7624e93b54e02fd88d17e25e172bf5b7b6bc0f8 Mon Sep 17 00:00:00 2001 From: isk Date: Thu, 14 Apr 2016 12:04:54 +0300 Subject: [PATCH] 0025464: Visualization - provide package for Volume Rendering. 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 | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/OpenGl/OpenGl_Texture.cxx b/src/OpenGl/OpenGl_Texture.cxx index 9b36091df1..5e45bd465e 100644 --- a/src/OpenGl/OpenGl_Texture.cxx +++ b/src/OpenGl/OpenGl_Texture.cxx @@ -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, -- 2.39.5