I get weird messages from Windows trying to use a pbuffer. I have a Matrox Millenium P650.
Thanks
Here the messages:
The instruction at "0x0635393c" reference memory at "0x00000000". The memory could not be "read".
The instruction at "0x06370d65" reference memory at "0x00000000". The memory could not be "read".
Here the code:
capabilities = new GLCapabilities();
capabilities.setDoubleBuffered(false);
if(GLDrawableFactory.getFactory().canCreateGLPbuffer()) {
int pbufferWidth = getNextPowerOf2(width);
int pbufferHeight = getNextPowerOf2(height);
GLDrawableFactory factory = GLDrawableFactory.getFactory();
GLPbuffer pbuffer = factory.createGLPbuffer(capabilities, null,
pbufferWidth, pbufferHeight, null);
context = pbuffer.getContext();
context.getGL().glViewport(0, 0, width, height);
if(GLContext.getCurrent() != context){
context.makeCurrent();
}
}
Here the debug/verbose log:
JOGL specification version 1.1.0
JOGL implementation version 1.1.0
JOGL implementation vendor Sun Microsystems, Inc.
Using AWT thread for performing OpenGL work in javax.media.opengl implementation
OGLUtilities.UNDEFINED = 0
OGLUtilities.WINDOW = 1
OGLUtilities.PBUFFER = 2
OGLUtilities.TEXTURE = 3
OGLUtilities.FLIP_BACKBUFFER = 4
OGLUtilities.FBOBJECT = 5
Checking for Java2D/OpenGL support
Java2D support: default GraphicsConfiguration = sun.awt.Win32GraphicsConfig
JOGL/Java2D integration disabled
AWT-EventQueue-0: !!! Created OpenGL context 0x10000 for com.sun.opengl.impl.windows.WindowsGLContext@10b4199, device context 0xffffffff91011620, not yet sharing
AWT-EventQueue-0: !!! Created OpenGL context 0x10000 for com.sun.opengl.impl.windows.WindowsGLContext@10b4199, device context 0xffffffff91011620, sharing with 0x0
AWT-EventQueue-0: !!! Created GL context for com.sun.opengl.impl.windows.WindowsGLContext
AWT-EventQueue-0: wglMakeCurrent(hdc 0xffffffff91011620, hglrc 0x10000) succeeded
AWT-EventQueue-0: !!! Initializing OpenGL extension address table for com.sun.opengl.impl.windows.WindowsGLContext@10b4199
AWT-EventQueue-0: !!! Initializing WGL extension address table for com.sun.opengl.impl.windows.WindowsGLContext@10b4199
!!! Pre-caching extension availability
!!! Available extensions: GL_ARB_depth_texture GL_ARB_multisample GL_ARB_multitexture GL_ARB_point_parameters GL_ARB_shadow GL_ARB_texture_border_clamp GL_ARB_texture_compression GL_ARB_texture_cube_map GL_ARB_texture_env_add GL_ARB_texture_env_combine GL_ARB_texture_env_dot3 GL_ARB_texture_mirrored_repeat GL_ARB_transpose_matrix GL_ARB_window_pos GL_S3_s3tc GL_ATI_element_array GL_ATI_vertex_array_object GL_Autodesk_valid_back_buffer_hint GL_EXT_bgra GL_EXT_blend_color GL_EXT_blend_func_separate GL_EXT_blend_logic_op GL_EXT_blend_minmax GL_EXT_blend_subtract GL_EXT_clip_volume_hint GL_EXT_compiled_vertex_array GL_EXT_draw_range_elements GL_EXT_fog_coord GL_EXT_multi_draw_arrays GL_EXT_packed_pixels GL_EXT_point_parameters GL_EXT_rescale_normal GL_EXT_secondary_color GL_EXT_separate_specular_color GL_EXT_stencil_wrap GL_EXT_subtexture GL_EXT_texture3D GL_EXT_texture_compression_s3tc GL_EXT_texture_cube_map GL_EXT_texture_edge_clamp GL_EXT_texture_env_add GL_EXT_texture_filter_anisotropic GL_EXT_texture_lod_bias GL_EXT_texture_object GL_EXT_vertex_array GL_EXT_vertex_shader GL_EXT_texture_env_combine GL_EXT_texture_env_dot3 GL_IBM_texture_mirrored_repeat GL_KTX_buffer_region GL_MTX_fragment_shader GL_MTX_precision_dpi GL_NV_blend_square GL_NV_texgen_reflection GL_NV_texture_rectangle GL_SGIS_multitexture GL_SGIS_texture_lod WGL_EXT_swap_control GL_WIN_swap_hint WGL_ARB_extensions_string WGL_ARB_multisample WGL_ARB_pbuffer WGL_ARB_pixel_format WGL_EXT_extensions_string WGL_EXT_pixel_format WGL_EXT_swap_control
!!! GL vendor: Matrox Graphics Inc.
!!! Available: GL_ARB_depth_texture
!!! Available: GL_ARB_multisample
!!! Available: GL_ARB_multitexture
[............]
!!! Available: WGL_EXT_pixel_format
!!! Available: WGL_EXT_swap_control
!!! Added GL_VERSION_1_3 to known extensionsPbuffer caps on init: GLCapabilities [DoubleBuffered: false, Stereo: false, HardwareAccelerated: true, DepthBits: 24, StencilBits: 0, Red: 8, Green: 8, Blue: 8, Alpha: 0, Red Accum: 0, Green Accum: 0, Blue Accum: 0, Alpha Accum: 0, Multisample: false ]
Pbuffer parentHdc = 0xffffffff9d011620
Pbuffer caps: GLCapabilities [DoubleBuffered: false, Stereo: false, HardwareAccelerated: true, DepthBits: 24, StencilBits: 0, Red: 8, Green: 8, Blue: 8, Alpha: 0, Red Accum: 0, Green Accum: 0, Blue Accum: 0, Alpha Accum: 0, Multisample: false ]
!!! Added GL_VERSION_1_2 to known extensions
!!! Added GL_VERSION_1_1 to known extensions
!!! Added GL_VERSION_1_0 to known extensions
AWT-EventQueue-0: !!! Destroyed OpenGL context 0x10000
WindowsGLDrawableFactory.canCreateGLPbuffer() = true
WindowsGLDrawableFactory.canCreateGLPbuffer() = true
AWT-EventQueue-0: !!! Created OpenGL context 0x20000 for com.sun.opengl.impl.windows.WindowsGLContext@18a47e0, device context 0xffffffff9d011620, not yet sharing
AWT-EventQueue-0: !!! Created OpenGL context 0x20000 for com.sun.opengl.impl.windows.WindowsGLContext@18a47e0, device context 0xffffffff9d011620, sharing with 0x0
AWT-EventQueue-0: !!! Created GL context for com.sun.opengl.impl.windows.WindowsGLContext
AWT-EventQueue-0: wglMakeCurrent(hdc 0xffffffff9d011620, hglrc 0x20000) succeeded
AWT-EventQueue-0: !!! Initializing OpenGL extension address table for com.sun.opengl.impl.windows.WindowsGLContext@18a47e0
AWT-EventQueue-0: !!! Initializing WGL extension address table for com.sun.opengl.impl.windows.WindowsGLContext@18a47e0
!!! Pre-caching extension availability
!!! Available extensions: GL_ARB_depth_texture GL_ARB_multisample GL_ARB_multitexture GL_ARB_point_parameters GL_ARB_shadow GL_ARB_texture_border_clamp GL_ARB_texture_compression GL_ARB_texture_cube_map GL_ARB_texture_env_add GL_ARB_texture_env_combine GL_ARB_texture_env_dot3 GL_ARB_texture_mirrored_repeat GL_ARB_transpose_matrix GL_ARB_window_pos GL_S3_s3tc GL_ATI_element_array GL_ATI_vertex_array_object GL_Autodesk_valid_back_buffer_hint GL_EXT_bgra GL_EXT_blend_color GL_EXT_blend_func_separate GL_EXT_blend_logic_op GL_EXT_blend_minmax GL_EXT_blend_subtract GL_EXT_clip_volume_hint GL_EXT_compiled_vertex_array GL_EXT_draw_range_elements GL_EXT_fog_coord GL_EXT_multi_draw_arrays GL_EXT_packed_pixels GL_EXT_point_parameters GL_EXT_rescale_normal GL_EXT_secondary_color GL_EXT_separate_specular_color GL_EXT_stencil_wrap GL_EXT_subtexture GL_EXT_texture3D GL_EXT_texture_compression_s3tc GL_EXT_texture_cube_map GL_EXT_texture_edge_clamp GL_EXT_texture_env_add GL_EXT_texture_filter_anisotropic GL_EXT_texture_lod_bias GL_EXT_texture_object GL_EXT_vertex_array GL_EXT_vertex_shader GL_EXT_texture_env_combine GL_EXT_texture_env_dot3 GL_IBM_texture_mirrored_repeat GL_KTX_buffer_region GL_MTX_fragment_shader GL_MTX_precision_dpi GL_NV_blend_square GL_NV_texgen_reflection GL_NV_texture_rectangle GL_SGIS_multitexture GL_SGIS_texture_lod WGL_EXT_swap_control GL_WIN_swap_hint WGL_ARB_extensions_string WGL_ARB_multisample WGL_ARB_pbuffer WGL_ARB_pixel_format WGL_EXT_extensions_string WGL_EXT_pixel_format WGL_EXT_swap_control
!!! GL vendor: Matrox Graphics Inc.
!!! Available: GL_ARB_depth_texture
!!! Available: GL_ARB_multisample
[............]
!!! Added GL_VERSION_1_3 to known extensions
!!! Added GL_VERSION_1_2 to known extensions
!!! Added GL_VERSION_1_1 to known extensions
!!! Added GL_VERSION_1_0 to known extensions
2 suitable pixel formats found
pixel format 1 (index 0): r: 8 g: 8 b: 8 a: 8 depth: 24 multisample: 0 samples: 0 [pbuffer]
pixel format 40 (index 1): r: 8 g: 8 b: 8 a: 8 depth: 24 multisample: 0 samples: 0 [pbuffer]
Created pbuffer 256 x 512
AWT-EventQueue-0: !!! Destroyed OpenGL context 0x20000
main: !!! Created OpenGL context 0x30000 for com.sun.opengl.impl.windows.WindowsPbufferGLContext@1a05308, device context 0xfffffffff7010cd6, not yet sharing
main: !!! Created OpenGL context 0x30000 for com.sun.opengl.impl.windows.WindowsPbufferGLContext@1a05308, device context 0xfffffffff7010cd6, sharing with 0x0
main: !!! Created GL context for com.sun.opengl.impl.windows.WindowsPbufferGLContext
main: wglMakeCurrent(hdc 0xfffffffff7010cd6, hglrc 0x30000) succeeded
main: !!! Initializing OpenGL extension address table for com.sun.opengl.impl.windows.WindowsPbufferGLContext@1a05308
main: !!! Initializing WGL extension address table for com.sun.opengl.impl.windows.WindowsPbufferGLContext@1a05308
WindowsPbufferGLContext: super.makeCurrentImpl() = 2