From d10d5f7804e8c52309353153ad9135382a957489 Mon Sep 17 00:00:00 2001 From: ouv Date: Tue, 4 May 2010 08:13:36 +0000 Subject: [PATCH] To throw "Initializing ARB extensions failed" not only in debug mode, but in release mode also. --- src/VTKViewer/Makefile.am | 6 ++++-- src/VTKViewer/VTKViewer_PolyDataMapper.cxx | 4 +++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/VTKViewer/Makefile.am b/src/VTKViewer/Makefile.am index 45c811c58..83be74896 100755 --- a/src/VTKViewer/Makefile.am +++ b/src/VTKViewer/Makefile.am @@ -135,8 +135,10 @@ nodist_salomeres_DATA = \ libVTKViewer_la_CPPFLAGS = $(QT_INCLUDES) $(VTK_INCLUDES) $(CAS_CPPFLAGS) \ -I$(srcdir)/../Qtx -I$(srcdir)/../SUIT -libVTKViewer_la_LDFLAGS = $(VTK_LIBS) $(QT_MT_LIBS) $(CAS_KERNEL) $(OGL_LIBS) \ - ../Qtx/libqtx.la ../SUIT/libsuit.la +libVTKViewer_la_LDFLAGS = $(KERNEL_LDFLAGS) $(VTK_LIBS) $(QT_MT_LIBS) \ + $(CAS_KERNEL) $(OGL_LIBS) ../Qtx/libqtx.la ../SUIT/libsuit.la + +libVTKViewer_la_LIBADD = -lSALOMELocalTrace # Executable diff --git a/src/VTKViewer/VTKViewer_PolyDataMapper.cxx b/src/VTKViewer/VTKViewer_PolyDataMapper.cxx index 546709945..50ea7c8e3 100644 --- a/src/VTKViewer/VTKViewer_PolyDataMapper.cxx +++ b/src/VTKViewer/VTKViewer_PolyDataMapper.cxx @@ -20,6 +20,8 @@ #include "VTKViewer_PolyDataMapper.h" #include "VTKViewer_MarkerUtils.h" +#include + #include #include @@ -230,7 +232,7 @@ bool VTKViewer_PolyDataMapper::InitExtensions() strstr( ext, "GL_ARB_point_sprite" ) == NULL || strstr( ext, "GL_ARB_vertex_buffer_object" ) == NULL ) { - vtkWarningMacro(<<"Initializing ARB extensions failed"); + INFOS("Initializing ARB extensions failed"); return false; } -- 2.39.2