1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +03:00

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.
This commit is contained in:
isk
2016-04-14 12:04:54 +03:00
committed by duv
parent e367fede31
commit b7624e93b5

View 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,