Hi Paul,

I added the output with OSG_NOTIFY_LEVEL = DEBUG yesterday by editing the post 
in the forum, but I forgot that all post edits are not forwarded to the mailing 
list.

I use 64 bit OS but the application itself is 32 bit. The error accurs in the 
32 bit application as well as in the 64 bit shader examples.

So here is my output with DEBUG notification level:

Code:

GraphicsContext::setWindowingSystemInterface() 004293F8   615DCE9C
CullSettings::readEnvironmentalVariables()
DatabasePager::addDatabaseThread() HANDLE_NON_HTTP
DatabasePager::addDatabaseThread() HANDLE_ONLY_HTTP
Render::Render() 004469C8
CullSettings::readEnvironmentalVariables()
CullSettings::readEnvironmentalVariables()
CullSettings::readEnvironmentalVariables()
CullSettings::readEnvironmentalVariables()
ShaderComposer::ShaderComposer() 0044A040
CullSettings::readEnvironmentalVariables()
ShaderComposer::ShaderComposer() 0044D0F8
_availableQueue.size()=2
itr='d:\osgVisual\experimental\distortionNG\Debug'
FindFileInPath() : trying 
D:\osgVisual\experimental\distortionNG\Debug\osgPlugins-3.1.2\osgdb_pngd.dll ...
itr='D:\OpenSceneGraph\OpenSceneGraph-3.1.2_x86\bin'
FindFileInPath() : trying 
D:\OpenSceneGraph\OpenSceneGraph-3.1.2_x86\bin\osgPlugins-3.1.2\osgdb_pngd.dll 
...
FindFileInPath() : USING 
D:\OpenSceneGraph\OpenSceneGraph-3.1.2_x86\bin\osgPlugins-3.1.2\osgdb_pngd.dll
Opened DynamicLibrary osgPlugins-3.1.2/osgdb_pngd.dll
itr='D:\OpenSceneGraph\Data'
FindFileInPath() : trying D:\OpenSceneGraph\Data\intensitymap.png ...
itr='D:\OpenSceneGraph\Data\Images'
FindFileInPath() : trying D:\OpenSceneGraph\Data\Images\intensitymap.png ...
width=1600 height=768 depth=8
View::setUpViewForManualDistortion(sn=0, im=00454070)
GraphicsContext::getWindowingSystemInterface() 004293F8   615DCE9C
GraphicsContext::registerGraphicsContext 0045B960
ShaderComposer::ShaderComposer() 0045C700
GraphicsContext::createNewContextID() creating contextID=0
Updating the MaxNumberOfGraphicsContexts to 1
CullSettings::readEnvironmentalVariables()
Render::Render() 00451480
CullSettings::readEnvironmentalVariables()
CullSettings::readEnvironmentalVariables()
CullSettings::readEnvironmentalVariables()
CullSettings::readEnvironmentalVariables()
ShaderComposer::ShaderComposer() 0045CAA8
ShaderComposer::ShaderComposer() 0045CA10
_availableQueue.size()=2
Loading shader source file "shader.frag"
CullSettings::readEnvironmentalVariables()
Render::Render() 00464520
CullSettings::readEnvironmentalVariables()
CullSettings::readEnvironmentalVariables()
CullSettings::readEnvironmentalVariables()
CullSettings::readEnvironmentalVariables()
ShaderComposer::ShaderComposer() 0045CDA0
ShaderComposer::ShaderComposer() 0045D098
_availableQueue.size()=2
DriveManipulator::_height set to ==1.5
getCoordinateFrame(0 -1 0)
   no coordinate system found, using default orientation
View::requestWarpPointer(0,0)
View::requestWarpPointer failed no camera containing pointer
View::requestWarpPointer(0,0)
View::requestWarpPointer failed no camera containing pointer
CullSettings::readEnvironmentalVariables()
Render::Render() 00465BC8
CullSettings::readEnvironmentalVariables()
CullSettings::readEnvironmentalVariables()
CullSettings::readEnvironmentalVariables()
CullSettings::readEnvironmentalVariables()
ShaderComposer::ShaderComposer() 00475CD8
ShaderComposer::ShaderComposer() 00475C40
_availableQueue.size()=2
CullSettings::readEnvironmentalVariables()
Render::Render() 00485068
CullSettings::readEnvironmentalVariables()
CullSettings::readEnvironmentalVariables()
CullSettings::readEnvironmentalVariables()
CullSettings::readEnvironmentalVariables()
ShaderComposer::ShaderComposer() 004763F8
ShaderComposer::ShaderComposer() 00476360
_availableQueue.size()=2
itr='d:\osgVisual\experimental\distortionNG\Debug'
FindFileInPath() : trying 
D:\osgVisual\experimental\distortionNG\Debug\osgPlugins-3.1.2\osgdb_osgd.dll ...
itr='D:\OpenSceneGraph\OpenSceneGraph-3.1.2_x86\bin'
FindFileInPath() : trying 
D:\OpenSceneGraph\OpenSceneGraph-3.1.2_x86\bin\osgPlugins-3.1.2\osgdb_osgd.dll 
...
FindFileInPath() : USING 
D:\OpenSceneGraph\OpenSceneGraph-3.1.2_x86\bin\osgPlugins-3.1.2\osgdb_osgd.dll
Opened DynamicLibrary osgPlugins-3.1.2/osgdb_osgd.dll
itr='D:\OpenSceneGraph\Data'
FindFileInPath() : trying D:\OpenSceneGraph\Data\cow.osgt ...
FindFileInPath() : USING D:\OpenSceneGraph\Data\cow.osgt
itr='d:\osgVisual\experimental\distortionNG\Debug'
FindFileInPath() : trying D:\osgVisual\experimental\distortionNG\Debug\osgd.dll 
...
itr='D:\OpenSceneGraph\OpenSceneGraph-3.1.2_x86\bin'
FindFileInPath() : trying 
D:\OpenSceneGraph\OpenSceneGraph-3.1.2_x86\bin\osgd.dll ...
itr='C:\Windows\system32'
FindFileInPath() : trying C:\Windows\System32\osgd.dll ...
itr='C:\Windows\System'
FindFileInPath() : trying C:\Windows\system\osgd.dll ...
itr='C:\Windows'
FindFileInPath() : trying C:\Windows\osgd.dll ...
itr='.'
FindFileInPath() : trying D:\osgVisual\experimental\distortionNG\osgd.dll ...
itr='C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common'
FindFileInPath() : trying C:\Program Files (x86)\NVIDIA 
Corporation\PhysX\Common\osgd.dll ...
itr='C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v4.1\\bin'
FindFileInPath() : trying C:\Program Files\NVIDIA GPU Computing 
Toolkit\CUDA\v4.1\bin\osgd.dll ...
itr='C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v4.1\libnvvp\'
FindFileInPath() : trying C:\Program Files\NVIDIA GPU Computing 
Toolkit\CUDA\v4.1\libnvvp\osgd.dll ...
itr='C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v4.0\bin\'
FindFileInPath() : trying C:\Program Files\NVIDIA GPU Computing 
Toolkit\CUDA\v4.0\bin\osgd.dll ...
itr='C:\Python27\'
FindFileInPath() : trying C:\Python27\osgd.dll ...
itr='C:\Python27\Scripts'
FindFileInPath() : trying C:\Python27\Scripts\osgd.dll ...
itr='C:\Perl64\site\bin'
FindFileInPath() : trying C:\Perl64\site\bin\osgd.dll ...
itr='C:\Perl64\bin'
FindFileInPath() : trying C:\Perl64\bin\osgd.dll ...
itr='C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v3.2\bin\'
FindFileInPath() : trying C:\Program Files\NVIDIA GPU Computing 
Toolkit\CUDA\v3.2\bin\osgd.dll ...
itr='C:\Windows\system32'
FindFileInPath() : trying C:\Windows\System32\osgd.dll ...
itr='C:\Windows'
FindFileInPath() : trying C:\Windows\osgd.dll ...
itr='C:\Windows\System32\Wbem'
FindFileInPath() : trying C:\Windows\System32\wbem\osgd.dll ...
itr='C:\Windows\System32\WindowsPowerShell\v1.0\'
FindFileInPath() : trying C:\Windows\System32\WindowsPowerShell\v1.0\osgd.dll 
...
itr='c:\Program Files (x86)\Microsoft SQL Server\90\Tools\binn\'
FindFileInPath() : trying C:\Program Files (x86)\Microsoft SQL 
Server\90\Tools\Binn\osgd.dll ...
itr='D:\OpenSceneGraph\OpenSceneGraph-3.1.2_x86\bin'
FindFileInPath() : trying 
D:\OpenSceneGraph\OpenSceneGraph-3.1.2_x86\bin\osgd.dll ...
itr='D:\OpenSceneGraph\3rdParty_x86_x64\x86\bin'
FindFileInPath() : trying D:\OpenSceneGraph\3rdParty_x86_x64\x86\bin\osgd.dll 
...
itr='C:\Program Files\TortoiseSVN\bin'
FindFileInPath() : trying C:\Program Files\TortoiseSVN\bin\osgd.dll ...
itr='C:\Qt\4.8.0_x86/bin'
FindFileInPath() : trying C:\Qt\4.8.0_x86\bin\osgd.dll ...
itr='D:\OpenSceneGraph\OpenSceneGraph-3.1.2_x64\bin'
FindFileInPath() : trying 
D:\OpenSceneGraph\OpenSceneGraph-3.1.2_x64\bin\osgd.dll ...
itr='D:\OpenSceneGraph\3rdParty_x86_x64\x64\bin\'
FindFileInPath() : trying D:\OpenSceneGraph\3rdParty_x86_x64\x64\bin\osgd.dll 
...
itr='C:\Program Files\TortoiseGit\bin'
FindFileInPath() : trying C:\Program Files\TortoiseGit\bin\osgd.dll ...
itr='C:\Program Files (x86)\Git\cmd'
FindFileInPath() : trying C:\Program Files (x86)\Git\cmd\osgd.dll ...
itr='C:\Program Files (x86)\WinSCP\'
FindFileInPath() : trying C:\Program Files (x86)\WinSCP\osgd.dll ...
itr='C:\Program Files (x86)\QuickTime\QTSystem\'
FindFileInPath() : trying C:\Program Files (x86)\QuickTime\QTSystem\osgd.dll ...
itr='C:\Users\Torbuli\AppData\Roaming\Python\Scripts'
FindFileInPath() : trying 
C:\Users\Torbuli\AppData\Roaming\Python\Scripts\osgd.dll ...
itr='C:\Program Files (x86)\Microsoft Visual Studio 9.0\'
FindFileInPath() : trying C:\Program Files (x86)\Microsoft Visual Studio 
9.0\osgd.dll ...
itr='C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin'
FindFileInPath() : trying C:\Program Files (x86)\Microsoft Visual Studio 
9.0\VC\bin\osgd.dll ...
itr='D:/OpenSceneGraph/OpenSceneGraph-3.1.2_x86/lib/osgPlugins-3.1.2'
FindFileInPath() : trying 
D:\OpenSceneGraph\OpenSceneGraph-3.1.2_x86\lib\osgPlugins-3.1.2\osgd.dll ...
DynamicLibrary::failed loading "osgd.dll"
itr='d:\osgVisual\experimental\distortionNG\Debug'
FindFileInPath() : trying 
D:\osgVisual\experimental\distortionNG\Debug\osgPlugins-3.1.2\osgdb_serializers_osgd.dll
 ...
itr='D:\OpenSceneGraph\OpenSceneGraph-3.1.2_x86\bin'
FindFileInPath() : trying 
D:\OpenSceneGraph\OpenSceneGraph-3.1.2_x86\bin\osgPlugins-3.1.2\osgdb_serializers_osgd.dll
 ...
FindFileInPath() : USING 
D:\OpenSceneGraph\OpenSceneGraph-3.1.2_x86\bin\osgPlugins-3.1.2\osgdb_serializers_osgd.dll
CullSettings::readEnvironmentalVariables()
Constructing PixelBufferObject for image=004A6B70
Constructing PixelBufferObject for image=004A8DA0
Opened DynamicLibrary osgPlugins-3.1.2/osgdb_serializers_osgd.dll
itr='d:\osgVisual\experimental\distortionNG\Debug'
FindFileInPath() : trying 
D:\osgVisual\experimental\distortionNG\Debug\osgPlugins-3.1.2\osgdb_rgbd.dll ...
itr='D:\OpenSceneGraph\OpenSceneGraph-3.1.2_x86\bin'
FindFileInPath() : trying 
D:\OpenSceneGraph\OpenSceneGraph-3.1.2_x86\bin\osgPlugins-3.1.2\osgdb_rgbd.dll 
...
FindFileInPath() : USING 
D:\OpenSceneGraph\OpenSceneGraph-3.1.2_x86\bin\osgPlugins-3.1.2\osgdb_rgbd.dll
Opened DynamicLibrary osgPlugins-3.1.2/osgdb_rgbd.dll
itr='D:\OpenSceneGraph\Data'
FindFileInPath() : trying D:\OpenSceneGraph\Data\Images\reflect.rgb ...
FindFileInPath() : USING D:\OpenSceneGraph\Data\Images\reflect.rgb
raw->sizeX = 128
raw->sizeY = 128
raw->sizeZ = 3
raw->bpc = 1
image read ok 128  128
View::setSceneData() Reusing exisitng scene00444108
 CameraManipulator::computeHomePosition(00000000, 0)
    boundingSphere.center() = (0.776125 -0.43866 0)
    boundingSphere.radius() = 6.35558
 CameraManipulator::computeHomePosition(00000000, 1)
    boundingSphere.center() = (0.776125 -0.43866 0)
    boundingSphere.radius() = 6.35558
DriveManipulator::_height set to ==1.5
getCoordinateFrame(0.776125 -0.43866 0)
   no coordinate system found, using default orientation
 CameraManipulator::computeHomePosition(00000000, 0)
    boundingSphere.center() = (0.776125 -0.43866 0)
    boundingSphere.radius() = 6.35558
TerrainManipulator: setting _minimumDistance to 0.00635558
 CameraManipulator::computeHomePosition(00443CA0, 0)
    boundingSphere.center() = (0.776125 -0.43866 0)
    boundingSphere.radius() = 6.35558
 CameraManipulator::computeHomePosition(00443CA0, 1)
    boundingSphere.center() = (0.776125 -0.43866 0)
    boundingSphere.radius() = 6.35558
getCoordinateFrame(0.776125 -25.6959 0)
   no coordinate system found, using default orientation
View::requestWarpPointer(0,0)
View::requestWarpPointer failed no camera containing pointer
View::requestWarpPointer(0,0)
View::requestWarpPointer failed no camera containing pointer
 CameraManipulator::computeHomePosition(00443CA0, 0)
    boundingSphere.center() = (0.776125 -0.43866 0)
    boundingSphere.radius() = 6.35558
In compute
getCoordinateFrame(0.776125 -1.683 0)
   no coordinate system found, using default orientation
osg::State::_maxTexturePoolSize=0
osg::State::_maxBufferObjectPoolSize=0
OpenGL extensions supported by installed OpenGL drivers are:
    GL_ARB_ES2_compatibility
    GL_ARB_base_instance
    GL_ARB_blend_func_extended
    GL_ARB_color_buffer_float
    GL_ARB_compatibility
    GL_ARB_compressed_texture_pixel_storage
    GL_ARB_conservative_depth
    GL_ARB_copy_buffer
    GL_ARB_depth_buffer_float
    GL_ARB_depth_clamp
    GL_ARB_depth_texture
    GL_ARB_draw_buffers
    GL_ARB_draw_buffers_blend
    GL_ARB_draw_elements_base_vertex
    GL_ARB_draw_indirect
    GL_ARB_draw_instanced
    GL_ARB_explicit_attrib_location
    GL_ARB_fragment_coord_conventions
    GL_ARB_fragment_program
    GL_ARB_fragment_program_shadow
    GL_ARB_fragment_shader
    GL_ARB_framebuffer_object
    GL_ARB_framebuffer_sRGB
    GL_ARB_geometry_shader4
    GL_ARB_get_program_binary
    GL_ARB_gpu_shader5
    GL_ARB_gpu_shader_fp64
    GL_ARB_half_float_pixel
    GL_ARB_half_float_vertex
    GL_ARB_imaging
    GL_ARB_instanced_arrays
    GL_ARB_internalformat_query
    GL_ARB_map_buffer_alignment
    GL_ARB_map_buffer_range
    GL_ARB_multisample
    GL_ARB_multitexture
    GL_ARB_occlusion_query
    GL_ARB_occlusion_query2
    GL_ARB_pixel_buffer_object
    GL_ARB_point_parameters
    GL_ARB_point_sprite
    GL_ARB_provoking_vertex
    GL_ARB_robustness
    GL_ARB_sample_shading
    GL_ARB_sampler_objects
    GL_ARB_seamless_cube_map
    GL_ARB_separate_shader_objects
    GL_ARB_shader_atomic_counters
    GL_ARB_shader_bit_encoding
    GL_ARB_shader_image_load_store
    GL_ARB_shader_objects
    GL_ARB_shader_precision
    GL_ARB_shader_subroutine
    GL_ARB_shading_language_100
    GL_ARB_shading_language_420pack
    GL_ARB_shading_language_include
    GL_ARB_shading_language_packing
    GL_ARB_shadow
    GL_ARB_sync
    GL_ARB_tessellation_shader
    GL_ARB_texture_border_clamp
    GL_ARB_texture_buffer_object
    GL_ARB_texture_buffer_object_rgb32
    GL_ARB_texture_compression
    GL_ARB_texture_compression_bptc
    GL_ARB_texture_compression_rgtc
    GL_ARB_texture_cube_map
    GL_ARB_texture_cube_map_array
    GL_ARB_texture_env_add
    GL_ARB_texture_env_combine
    GL_ARB_texture_env_crossbar
    GL_ARB_texture_env_dot3
    GL_ARB_texture_float
    GL_ARB_texture_gather
    GL_ARB_texture_mirrored_repeat
    GL_ARB_texture_multisample
    GL_ARB_texture_non_power_of_two
    GL_ARB_texture_query_lod
    GL_ARB_texture_rectangle
    GL_ARB_texture_rg
    GL_ARB_texture_rgb10_a2ui
    GL_ARB_texture_storage
    GL_ARB_texture_swizzle
    GL_ARB_timer_query
    GL_ARB_transform_feedback2
    GL_ARB_transform_feedback3
    GL_ARB_transform_feedback_instanced
    GL_ARB_transpose_matrix
    GL_ARB_uniform_buffer_object
    GL_ARB_vertex_array_bgra
    GL_ARB_vertex_array_object
    GL_ARB_vertex_attrib_64bit
    GL_ARB_vertex_buffer_object
    GL_ARB_vertex_program
    GL_ARB_vertex_shader
    GL_ARB_vertex_type_2_10_10_10_rev
    GL_ARB_viewport_array
    GL_ARB_window_pos
    GL_ATI_draw_buffers
    GL_ATI_texture_float
    GL_ATI_texture_mirror_once
    GL_EXTX_framebuffer_mixed_formats
    GL_EXT_Cg_shader
    GL_EXT_abgr
    GL_EXT_bgra
    GL_EXT_bindable_uniform
    GL_EXT_blend_color
    GL_EXT_blend_equation_separate
    GL_EXT_blend_func_separate
    GL_EXT_blend_minmax
    GL_EXT_blend_subtract
    GL_EXT_compiled_vertex_array
    GL_EXT_depth_bounds_test
    GL_EXT_direct_state_access
    GL_EXT_draw_buffers2
    GL_EXT_draw_instanced
    GL_EXT_draw_range_elements
    GL_EXT_fog_coord
    GL_EXT_framebuffer_blit
    GL_EXT_framebuffer_multisample
    GL_EXT_framebuffer_object
    GL_EXT_framebuffer_sRGB
    GL_EXT_geometry_shader4
    GL_EXT_gpu_program_parameters
    GL_EXT_gpu_shader4
    GL_EXT_import_sync_object
    GL_EXT_multi_draw_arrays
    GL_EXT_packed_depth_stencil
    GL_EXT_packed_float
    GL_EXT_packed_pixels
    GL_EXT_pixel_buffer_object
    GL_EXT_point_parameters
    GL_EXT_provoking_vertex
    GL_EXT_rescale_normal
    GL_EXT_secondary_color
    GL_EXT_separate_shader_objects
    GL_EXT_separate_specular_color
    GL_EXT_shader_image_load_store
    GL_EXT_shadow_funcs
    GL_EXT_stencil_two_side
    GL_EXT_stencil_wrap
    GL_EXT_texture3D
    GL_EXT_texture_array
    GL_EXT_texture_buffer_object
    GL_EXT_texture_compression_dxt1
    GL_EXT_texture_compression_latc
    GL_EXT_texture_compression_rgtc
    GL_EXT_texture_compression_s3tc
    GL_EXT_texture_cube_map
    GL_EXT_texture_edge_clamp
    GL_EXT_texture_env_add
    GL_EXT_texture_env_combine
    GL_EXT_texture_env_dot3
    GL_EXT_texture_filter_anisotropic
    GL_EXT_texture_format_BGRA8888
    GL_EXT_texture_integer
    GL_EXT_texture_lod
    GL_EXT_texture_lod_bias
    GL_EXT_texture_mirror_clamp
    GL_EXT_texture_object
    GL_EXT_texture_sRGB
    GL_EXT_texture_sRGB_decode
    GL_EXT_texture_shared_exponent
    GL_EXT_texture_storage
    GL_EXT_texture_swizzle
    GL_EXT_texture_type_2_10_10_10_REV
    GL_EXT_timer_query
    GL_EXT_transform_feedback2
    GL_EXT_vertex_array
    GL_EXT_vertex_array_bgra
    GL_EXT_vertex_attrib_64bit
    GL_IBM_rasterpos_clip
    GL_IBM_texture_mirrored_repeat
    GL_KTX_buffer_region
    GL_NVX_conditional_render
    GL_NVX_gpu_memory_info
    GL_NV_alpha_test
    GL_NV_blend_minmax
    GL_NV_blend_square
    GL_NV_complex_primitives
    GL_NV_conditional_render
    GL_NV_copy_depth_to_color
    GL_NV_copy_image
    GL_NV_depth_buffer_float
    GL_NV_depth_clamp
    GL_NV_explicit_multisample
    GL_NV_fbo_color_attachments
    GL_NV_fence
    GL_NV_float_buffer
    GL_NV_fog_distance
    GL_NV_fragdepth
    GL_NV_fragment_program
    GL_NV_fragment_program2
    GL_NV_fragment_program_option
    GL_NV_framebuffer_multisample_coverage
    GL_NV_geometry_shader4
    GL_NV_gpu_program4
    GL_NV_gpu_program4_1
    GL_NV_gpu_program5
    GL_NV_gpu_program_fp64
    GL_NV_gpu_shader5
    GL_NV_half_float
    GL_NV_light_max_exponent
    GL_NV_multisample_coverage
    GL_NV_multisample_filter_hint
    GL_NV_occlusion_query
    GL_NV_packed_depth_stencil
    GL_NV_parameter_buffer_object
    GL_NV_parameter_buffer_object2
    GL_NV_path_rendering
    GL_NV_pixel_data_range
    GL_NV_point_sprite
    GL_NV_primitive_restart
    GL_NV_register_combiners
    GL_NV_register_combiners2
    GL_NV_shader_atomic_counters
    GL_NV_shader_buffer_load
    GL_NV_texgen_reflection
    GL_NV_texture_barrier
    GL_NV_texture_compression_vtc
    GL_NV_texture_env_combine4
    GL_NV_texture_expand_normal
    GL_NV_texture_lod_clamp
    GL_NV_texture_multisample
    GL_NV_texture_rectangle
    GL_NV_texture_shader
    GL_NV_texture_shader2
    GL_NV_texture_shader3
    GL_NV_transform_feedback
    GL_NV_transform_feedback2
    GL_NV_vertex_array_range
    GL_NV_vertex_array_range2
    GL_NV_vertex_attrib_integer_64bit
    GL_NV_vertex_buffer_unified_memory
    GL_NV_vertex_program
    GL_NV_vertex_program1_1
    GL_NV_vertex_program2
    GL_NV_vertex_program2_option
    GL_NV_vertex_program3
    GL_OES_depth24
    GL_OES_depth32
    GL_OES_depth_texture
    GL_OES_element_index_uint
    GL_OES_fbo_render_mipmap
    GL_OES_get_program_binary
    GL_OES_mapbuffer
    GL_OES_packed_depth_stencil
    GL_OES_rgb8_rgba8
    GL_OES_standard_derivatives
    GL_OES_texture_3D
    GL_OES_texture_float
    GL_OES_texture_float_linear
    GL_OES_texture_half_float
    GL_OES_texture_half_float_linear
    GL_OES_texture_npot
    GL_OES_vertex_array_object
    GL_OES_vertex_half_float
    GL_S3_s3tc
    GL_SGIS_generate_mipmap
    GL_SGIS_texture_lod
    GL_SGIX_depth_texture
    GL_SGIX_shadow
    GL_SUN_slice_accum
    GL_WIN_swap_hint
    WGL_ARB_buffer_region
    WGL_ARB_create_context
    WGL_ARB_create_context_profile
    WGL_ARB_create_context_robustness
    WGL_ARB_extensions_string
    WGL_ARB_make_current_read
    WGL_ARB_multisample
    WGL_ARB_pbuffer
    WGL_ARB_pixel_format
    WGL_ARB_pixel_format_float
    WGL_ARB_render_texture
    WGL_ATI_pixel_format_float
    WGL_EXT_create_context_es2_profile
    WGL_EXT_extensions_string
    WGL_EXT_framebuffer_sRGB
    WGL_EXT_pixel_format_packed_float
    WGL_EXT_swap_control
    WGL_EXT_swap_control_tear
    WGL_NVX_DX_interop
    WGL_NV_DX_interop
    WGL_NV_DX_interop2
    WGL_NV_float_buffer
    WGL_NV_multisample_coverage
    WGL_NV_render_depth_texture
    WGL_NV_render_texture_rectangle
OpenGL extension 'GL_ARB_vertex_program' is supported.
OpenGL extension 'GL_EXT_secondary_color' is supported.
OpenGL extension 'GL_EXT_fog_coord' is supported.
OpenGL extension 'GL_ARB_multitexture' is supported.
OpenGL extension 'GL_NV_occlusion_query' is supported.
OpenGL extension 'GL_ARB_occlusion_query' is supported.
OpenGL extension 'GL_EXT_timer_query' is supported.
OpenGL extension 'GL_ARB_timer_query' is supported.
GraphicsCostEstimator::calibrate(..)
GraphicsWindowWin32::setSyncToVBlank on
Viewer::startThreading() - starting threading
Viewer::startThreading() - contexts.size()=1
Making scene thread safe
Doing add
Doing add
Doing add
  gc->getGraphicsThread()->startThread() 0280AB58
Set up threading
View::init()
cull()
cull() got SceneView 0045F110
ShaderComposer::~ShaderComposer() 0045CAA8
end cull() 00451480
cull()
cull() got SceneView 00470910
ShaderComposer::~ShaderComposer() 0045CDA0
end cull() 00464520
Doing run 0280AB58 isRunning()=1
draw() 00451480
draw() got SceneView 0045F110
Renderer::compile()
OpenGL extension 'GL_EXT_secondary_color' is supported.
OpenGL extension 'GL_EXT_fog_coord' is supported.
OpenGL extension 'GL_ARB_multitexture' is supported.
OpenGL extension 'GL_EXT_texture_filter_anisotropic' is supported.
OpenGL extension 'GL_ARB_texture_compression' is supported.
OpenGL extension 'GL_EXT_texture_compression_s3tc' is supported.
OpenGL extension 'GL_IMG_texture_compression_pvrtc' is not supported.
OpenGL extension 'GL_OES_compressed_ETC1_RGB8_texture' is not supported.
OpenGL extension 'GL_EXT_texture_compression_rgtc' is supported.
OpenGL extension 'GL_IMG_texture_compression_pvrtc' is not supported.
OpenGL extension 'GL_IBM_texture_mirrored_repeat' is supported.
OpenGL extension 'GL_EXT_texture_edge_clamp' is supported.
OpenGL extension 'GL_ARB_texture_border_clamp' is supported.
OpenGL extension 'GL_SGIS_generate_mipmap' is supported.
OpenGL extension 'GL_ARB_texture_multisample' is supported.
OpenGL extension 'GL_ARB_shadow' is supported.
OpenGL extension 'GL_ARB_shadow_ambient' is not supported.
OpenGL extension 'GL_APPLE_client_storage' is not supported.
OpenGL extension 'GL_ARB_texture_non_power_of_two' is supported.
OpenGL extension 'GL_EXT_texture_integer' is supported.
Created new 004AA500 TextureObject, _numOfTextureObjects 1
OpenGL extension '' is not supported.
OpenGL extension 'GL_EXT_packed_depth_stencil' is supported.
Setting up osg::Camera::FRAME_BUFFER_OBJECT
OpenGL extension 'GL_ARB_texture_rectangle' is supported.
Created new 004AA5A8 TextureObject, _numOfTextureObjects 1
end draw() 00451480
draw() 00464520
draw() got SceneView 00470910
Renderer::compile()
OpenGL extension 'GL_ARB_shader_objects' is supported.
OpenGL extension 'GL_ARB_vertex_shader' is supported.
OpenGL extension 'GL_ARB_fragment_shader' is supported.
OpenGL extension 'GL_ARB_shading_language_100' is supported.
OpenGL extension 'GL_EXT_geometry_shader4' is supported.
OpenGL extension 'GL_EXT_gpu_shader4' is supported.
OpenGL extension 'GL_ARB_tessellation_shader' is supported.
OpenGL extension 'GL_ARB_uniform_buffer_object' is supported.
OpenGL extension 'GL_ARB_get_program_binary' is supported.
OpenGL extension 'GL_ARB_gpu_shader_fp64' is supported.
OpenGL extension 'GL_ARB_shader_atomic_counters' is supported.
glVersion=4.2, isGlslSupported=YES, glslLanguageVersion=4.2

Compiling FRAGMENT source:
    1: #version 140    2: #extension GL_ARB_texture_rectangle : enable    3:    
 4: uniform sampler2DRect sceneTexture;    5: uniform sampler2DRect 
intensityMapTexture;    6:     7: out vec4 FragmentColor;

   8:     9: void main(void)   10: {   11:    vec4 sceneColor = 
texture2DRect(sceneTexture, vec2(gl_FragCoord));   12:    vec4 blendColor = 
texture2DRect(intensityMapTexture, vec2(gl_FragCoord));   

13:    14:    FragmentColor = sceneColor * blendColor;   15: }

Linking osg::Program "distortion" id=2 contextID=0
   Uniform "intensityMapTexture" loc=0 size=1 type=sampler2DRect
   Uniform "sceneTexture" loc=1 size=1 type=sampler2DRect
BufferData::releaseGLObjects(00000000)
BufferData::releaseGLObjects(00000000)
BufferObject::releaseGLObjects(00000000)
BufferObject::releaseGLObjects(00000000)
GraphicsContext::setWindowingSystemInterface() 00000000   615DCE9C
DatabasePager::RequestQueue::~RequestQueue() Destructing queue.
DatabasePager::RequestQueue::~RequestQueue() Destructing queue.
DatabasePager::RequestQueue::~RequestQueue() Destructing queue.
DatabasePager::RequestQueue::~RequestQueue() Destructing queue.
Closing DynamicLibrary osgPlugins-3.1.2/osgdb_pngd.dll
Closing DynamicLibrary osgPlugins-3.1.2/osgdb_osgd.dll
Closing DynamicLibrary osgPlugins-3.1.2/osgdb_serializers_osgd.dll
Closing DynamicLibrary osgPlugins-3.1.2/osgdb_rgbd.dll 




The Call stack is:

Code:

>       msvcp90d.dll!std::_Debug_message(const wchar_t * 
> message=0x000007feeaa59b68, const wchar_t * file=0x000007feeaa59bb0, unsigned 
> int line=779)  Zeile 24  C++
        osg92-osgd.dll!std::vector<int,std::allocator<int> 
>::operator[](unsigned __int64 _Pos=0)  Zeile 780    C++
        osg92-osgd.dll!osg::Program::PerContextProgram::linkProgram(osg::State 
& state={...})  Zeile 784 + 0xf Bytes    C++
        osg92-osgd.dll!osg::Program::compileGLObjects(osg::State & state={...}) 
 Zeile 233      C++
        osg92-osgd.dll!osg::StateSet::compileGLObjects(osg::State & 
state={...})  Zeile 1335    C++
        osg92-osgUtild.dll!osgUtil::GLObjectsVisitor::apply(osg::StateSet & 
stateset={...})  Zeile 114  C++
        osg92-osgUtild.dll!osgUtil::GLObjectsVisitor::apply(osg::Node & 
node={...})  Zeile 42   C++
        osg92-osgd.dll!osg::NodeVisitor::apply(osg::Group & node={...})  Zeile 
87       C++
        osg92-osgd.dll!osg::NodeVisitor::apply(osg::Transform & node={...})  
Zeile 122  C++
        osg92-osgd.dll!osg::NodeVisitor::apply(osg::PositionAttitudeTransform & 
node={...})  Zeile 142  C++
        osg92-osgd.dll!osg::PositionAttitudeTransform::accept(osg::NodeVisitor 
& nv={...})  Zeile 41 + 0x62 Bytes       C++
        osg92-osgd.dll!osg::Group::traverse(osg::NodeVisitor & nv={...})  Zeile 
62 + 0x32 Bytes C++
        osg92-osgd.dll!osg::NodeVisitor::traverse(osg::Node & node={...})  
Zeile 194    C++
        osg92-osgUtild.dll!osgUtil::GLObjectsVisitor::apply(osg::Node & 
node={...})  Zeile 43   C++
        osg92-osgd.dll!osg::NodeVisitor::apply(osg::Group & node={...})  Zeile 
87       C++
        osg92-osgd.dll!osg::Group::accept(osg::NodeVisitor & nv={...})  Zeile 
38 + 0x65 Bytes   C++
        osg92-osgViewerd.dll!osgViewer::Renderer::compile()  Zeile 541 + 0x33 
Bytes     C++
        osg92-osgViewerd.dll!osgViewer::Renderer::draw()  Zeile 671     C++
        
osg92-osgViewerd.dll!osgViewer::Renderer::operator()(osg::GraphicsContext * 
context=0x00000000027fc340)  Zeile 894      C++
        osg92-osgd.dll!osg::GraphicsContext::runOperations()  Zeile 778 C++
        osg92-osgd.dll!osg::RunOperations::operator()(osg::GraphicsContext * 
context=0x00000000027fc340)  Zeile 138     C++
        osg92-osgd.dll!osg::GraphicsOperation::operator()(osg::Object * 
object=0x00000000027fc340)  Zeile 54    C++
        osg92-osgd.dll!osg::OperationThread::run()  Zeile 429   C++
        osg92-osgd.dll!osg::GraphicsThread::run()  Zeile 41     C++
        
ot12-OpenThreadsd.dll!OpenThreads::ThreadPrivateActions::StartThread(void * 
data=0x0000000002819958)  Zeile 113 + 0x10 Bytes    C++
        msvcr90d.dll!_callthreadstartex()  Zeile 348 + 0x17 Bytes       C
        msvcr90d.dll!_threadstartex(void * ptd=0x000000000281a7e0)  Zeile 331   
C
        kernel32.dll!0000000076d9652d()         
        [Unten angegebene Rahmen sind möglicherweise nicht korrekt und/oder 
fehlen, keine Symbole geladen für kernel32.dll]     
        ntdll.dll!000000007733c521()    





"Deep in the VS internals " is a bad description, I know. :)
I'm using VS for a decade (.NET, 2005,2008) now, but I cannot remember to know 
the error message "vector subscript out of range" - sorry for the confusion.

Thank you for your help!

Cheers,
Torben

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=46708#46708





_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to