OpenGL 扩展问题

budweiser 2010-05-18 09:26:43
小弟用的是 Dell D630(显卡是 NVidia Quadro NVS 135M) 装的驱动是 197.16 系统: Xp sp3

在用 opengl 时基本上不支持 Opengl 扩展, 不知道是显卡确实不支持, 还是有什么设置不正确, 求解答。

通过 glGetString 函数得到如下信息:

GL_VENDER "NVIDIA Corporation"
GL_VERSION "3.2.0"
GL_GL_EXTENSIONS "GL_EXT_bgra GL_WIN_swap_hint "
GL_RENDERER "Quadro NVS 135M/PCI/SSE2"


还有 通过 glew 中的 glewInfo 得到如下信息:

GL_ARB_framebuffer_object: OK [MISSING]
--------------------------
glBindFramebuffer: OK
glBindRenderbuffer: OK
glBlitFramebuffer: OK
glCheckFramebufferStatus: OK
glDeleteFramebuffers: OK
glDeleteRenderbuffers: OK
glFramebufferRenderbuffer: OK
glFramebufferTexture1D: OK
glFramebufferTexture2D: OK
glFramebufferTexture3D: OK
glFramebufferTextureLayer: OK
glGenFramebuffers: OK
glGenRenderbuffers: OK
glGenerateMipmap: OK
glGetFramebufferAttachmentParameteriv: OK
glGetRenderbufferParameteriv: OK
glIsFramebuffer: OK
glIsRenderbuffer: OK
glRenderbufferStorage: OK
glRenderbufferStorageMultisample: OK

GL_ARB_framebuffer_sRGB: MISSING
------------------------

GL_ARB_geometry_shader4: OK [MISSING]
------------------------
glFramebufferTextureARB: OK
glFramebufferTextureFaceARB: OK
glFramebufferTextureLayerARB: OK
glProgramParameteriARB: OK

在下不懂 GL_ARB_framebuffer_object: OK [MISSING]
是什么意思, 为什么它的子项都是 OK, 但它是 OK[MISSING] , 望解答.

Thanks.
...全文
537 9 打赏 收藏 转发到动态 举报
写回复
用AI写文章
9 条回复
切换为时间正序
请发表友善的回复…
发表回复
budweiser 2010-05-22
  • 打赏
  • 举报
回复
上面总结的还有点问题, 今天要用cuda, 但185.85驱动只支持cuda2.2, 为了使用cuda3.0, 我有尝试刷到了197.16, 结果发现opengl扩展还是支持的, 我推断,opengl扩展的支持在驱动升级中没有被复写, 也就是说197.16版本中可能根本就没有关于opengl部分的。但最好在驱动升级中不要卸载原驱动。

补充说了上面的,希望对有心人有用。
budweiser 2010-05-19
  • 打赏
  • 举报
回复
原因找到了, 不是opengl32.dll 的问题, 是驱动的问题, 最新的197.16驱动有bug, 我rollback到了185.85版后没有问题了, 现在也支持很多扩展。

GL_ARB_color_buffer_float GL_ARB_depth_buffer_float GL_ARB_depth_texture GL_ARB_draw_buffers GL_ARB_draw_instanced GL_ARB_fragment_program GL_ARB_fragment_program_shadow GL_ARB_fragment_shader GL_ARB_half_float_pixel GL_ARB_half_float_vertex GL_ARB_framebuffer_object GL_ARB_geometry_shader4 GL_ARB_imaging GL_ARB_map_buffer_range GL_ARB_multisample GL_ARB_multitexture GL_ARB_occlusion_query GL_ARB_pixel_buffer_object GL_ARB_point_parameters GL_ARB_point_sprite GL_ARB_shadow GL_ARB_shader_objects GL_ARB_shading_language_100 GL_ARB_texture_border_clamp GL_ARB_texture_buffer_object 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_float GL_ARB_texture_mirrored_repeat GL_ARB_texture_non_power_of_two GL_ARB_texture_rectangle GL_ARB_texture_rg GL_ARB_transpose_matrix GL_ARB_vertex_array_object GL_ARB_vertex_buffer_object GL_ARB_vertex_program GL_ARB_vertex_shader GL_ARB_window_pos GL_ATI_draw_buffers GL_ATI_texture_float GL_ATI_texture_mirror_once GL_S3_s3tc GL_EXT_texture_env_add GL_EXT_abgr GL_EXT_bgra 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_Cg_shader GL_EXT_bindable_uniform 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_EXTX_framebuffer_mixed_formats GL_EXT_framebuffer_sRGB GL_EXT_geometry_shader4 GL_EXT_gpu_program_parameters GL_EXT_gpu_shader4 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_specular_color 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_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_combine GL_EXT_texture_env_dot3 GL_EXT_texture_filter_anisotropic 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_swizzle GL_EXT_texture_shared_exponent GL_EXT_timer_query GL_EXT_vertex_array GL_EXT_vertex_array_bgra GL_IBM_rasterpos_clip GL_IBM_texture_mirrored_repeat GL_KTX_buffer_region GL_NV_blend_square GL_NV_copy_depth_to_color GL_NV_depth_buffer_float GL_NV_conditional_render GL_NV_depth_clamp GL_NV_explicit_multisample GL_NV_fence GL_NV_float_buffer GL_NV_fog_distance GL_NV_fragment_program GL_NV_fragment_program_option GL_NV_fragment_program2 GL_NV_framebuffer_multisample_coverage GL_NV_geometry_shader4 GL_NV_gpu_program4 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_pixel_data_range GL_NV_point_sprite GL_NV_primitive_restart GL_NV_register_combiners GL_NV_register_combiners2 GL_NV_texgen_reflection GL_NV_texture_compression_vtc GL_NV_texture_env_combine4 GL_NV_texture_expand_normal GL_NV_texture_rectangle GL_NV_texture_shader GL_NV_texture_shader2 GL_NV_texture_shader3 GL_NV_transform_feedback GL_NV_vertex_array_range GL_NV_vertex_array_range2 GL_NV_vertex_program GL_NV_vertex_program1_1 GL_NV_vertex_program2 GL_NV_vertex_program2_option GL_NV_vertex_program3 GL_NVX_conditional_render GL_NV_vertex_buffer_unified_memory GL_NV_shader_buffer_load GL_SGIS_generate_mipmap GL_SGIS_texture_lod GL_SGIX_depth_texture GL_SGIX_shadow GL_SUN_slice_accum GL_WIN_swap_hint WGL_EXT_swap_control



嘿嘿 多谢各位了。
gumbour 2010-05-19
  • 打赏
  • 举报
回复
你的开发环境中的opengl和windows的opengl是一个版本吗,会不会开发环境的opengl32.dll版本旧,你测试程序可能使用了开发环境的opengl而不是系统的opengl。
budweiser 2010-05-19
  • 打赏
  • 举报
回复
我查了下 opengl 的 版本, 是 5.1.2600.5512 应该是比较新的 但情况还是那样
gumbour 2010-05-19
  • 打赏
  • 举报
回复
http://blog.csdn.net/gumbour/archive/2009/08/27/4488409.aspx
和我之前问题可能一样,系统文件夹opengl32.dll文件版本太旧。
budweiser 2010-05-18
  • 打赏
  • 举报
回复
既然

Extensions: 22

GL_EXT_bgra
GL_WIN_swap_hint
WGL_ARB_buffer_region
WGL_ARB_create_context
WGL_ARB_create_context_profile
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_extensions_string
WGL_EXT_framebuffer_sRGB
WGL_EXT_pixel_format_packed_float
WGL_EXT_swap_control
WGL_NV_float_buffer
WGL_NV_multisample_coverage
WGL_NV_render_depth_texture
WGL_NV_render_texture_rectangle
WGL_NVX_DX_interop



为甚么还会得到:

GL_GL_EXTENSIONS "GL_EXT_bgra GL_WIN_swap_hint "

只有前面两个呢??
budweiser 2010-05-18
  • 打赏
  • 举报
回复
下面的就是:

Extension verification:
GL_ARB_color_buffer_float was not found, but has the entry point glClampColorARB
GL_ARB_draw_buffers was not found, but has the entry point glDrawBuffersARB
GL_ARB_draw_instanced was not found, but has the entry point glDrawArraysInstancedARB
GL_ARB_draw_instanced was not found, but has the entry point glDrawElementsInstancedARB
GL_ARB_fragment_program was not found, but has the entry point glProgramStringARB
GL_ARB_fragment_program was not found, but has the entry point glBindProgramARB
GL_ARB_fragment_program was not found, but has the entry point glDeleteProgramsARB
GL_ARB_fragment_program was not found, but has the entry point glGenProgramsARB
GL_ARB_fragment_program was not found, but has the entry point glProgramEnvParameter4dARB
GL_ARB_fragment_program was not found, but has the entry point glProgramEnvParameter4dvARB
GL_ARB_fragment_program was not found, but has the entry point glProgramEnvParameter4fARB
GL_ARB_fragment_program was not found, but has the entry point glProgramEnvParameter4fvARB
GL_ARB_fragment_program was not found, but has the entry point glProgramLocalParameter4dARB
GL_ARB_fragment_program was not found, but has the entry point glProgramLocalParameter4dvARB
GL_ARB_fragment_program was not found, but has the entry point glProgramLocalParameter4fARB
GL_ARB_fragment_program was not found, but has the entry point glProgramLocalParameter4fvARB
GL_ARB_fragment_program was not found, but has the entry point glGetProgramEnvParameterdvARB
GL_ARB_fragment_program was not found, but has the entry point glGetProgramEnvParameterfvARB
GL_ARB_fragment_program was not found, but has the entry point glGetProgramLocalParameterdvARB
GL_ARB_fragment_program was not found, but has the entry point glGetProgramLocalParameterfvARB
GL_ARB_fragment_program was not found, but has the entry point glGetProgramivARB
GL_ARB_fragment_program was not found, but has the entry point glGetProgramStringARB
GL_ARB_fragment_program was not found, but has the entry point glIsProgramARB
GL_ARB_framebuffer_object was not found, but has the entry point glBindFramebuffer
GL_ARB_framebuffer_object was not found, but has the entry point glBindRenderbuffer
GL_ARB_framebuffer_object was not found, but has the entry point glBlitFramebuffer
GL_ARB_framebuffer_object was not found, but has the entry point glCheckFramebufferStatus
GL_ARB_framebuffer_object was not found, but has the entry point glDeleteFramebuffers
GL_ARB_framebuffer_object was not found, but has the entry point glDeleteRenderbuffers
GL_ARB_framebuffer_object was not found, but has the entry point glFramebufferRenderbuffer
GL_ARB_framebuffer_object was not found, but has the entry point glFramebufferTextureLayer
GL_ARB_framebuffer_object was not found, but has the entry point glFramebufferTexture1D
GL_ARB_framebuffer_object was not found, but has the entry point glFramebufferTexture2D
GL_ARB_framebuffer_object was not found, but has the entry point glFramebufferTexture3D
GL_ARB_framebuffer_object was not found, but has the entry point glGenFramebuffers
GL_ARB_framebuffer_object was not found, but has the entry point glGenRenderbuffers
GL_ARB_framebuffer_object was not found, but has the entry point glGenerateMipmap
GL_ARB_framebuffer_object was not found, but has the entry point glGetFramebufferAttachmentParameteriv
GL_ARB_framebuffer_object was not found, but has the entry point glGetRenderbufferParameteriv
GL_ARB_framebuffer_object was not found, but has the entry point glIsFramebuffer
GL_ARB_framebuffer_object was not found, but has the entry point glIsRenderbuffer
GL_ARB_framebuffer_object was not found, but has the entry point glRenderbufferStorage
GL_ARB_framebuffer_object was not found, but has the entry point glRenderbufferStorageMultisample
GL_ARB_geometry_shader4 was not found, but has the entry point glFramebufferTextureARB
GL_ARB_geometry_shader4 was not found, but has the entry point glFramebufferTextureFaceARB
GL_ARB_geometry_shader4 was not found, but has the entry point glFramebufferTextureLayerARB
GL_ARB_geometry_shader4 was not found, but has the entry point glProgramParameteriARB
GL_ARB_imaging was not found, but has the entry point glColorSubTable
GL_ARB_imaging was not found, but has the entry point glColorTable
GL_ARB_imaging was not found, but has the entry point glColorTableParameterfv
GL_ARB_imaging was not found, but has the entry point glColorTableParameteriv
GL_ARB_imaging was not found, but has the entry point glConvolutionFilter1D
GL_ARB_imaging was not found, but has the entry point glConvolutionFilter2D
GL_ARB_imaging was not found, but has the entry point glConvolutionParameterf
GL_ARB_imaging was not found, but has the entry point glConvolutionParameterfv
GL_ARB_imaging was not found, but has the entry point glConvolutionParameteri
GL_ARB_imaging was not found, but has the entry point glConvolutionParameteriv


等等。。。。。
budweiser 2010-05-18
  • 打赏
  • 举报
回复
Renderer: Quadro NVS 135M/PCI/SSE2
Vendor: NVIDIA Corporation
Memory: 256 MB
Version: 3.2.0
Shading language version: 1.50 NVIDIA via Cg compiler


Max texture size: 8192 x 8192
Max texture coordinates: 0
Max vertex texture image units: 0
Max texture image units: 0
Max geometry texture units: 0
Max anisotropic filtering value: 0
Max number of light sources: 8
Max viewport size: 8192 x 8192
Max uniform vertex components: 0
Max uniform fragment components: 0
Max geometry uniform components: 0
Max varying floats: 0
Max samples: 16
Max draw buffers: 0


Extensions: 22

GL_EXT_bgra
GL_WIN_swap_hint
WGL_ARB_buffer_region
WGL_ARB_create_context
WGL_ARB_create_context_profile
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_extensions_string
WGL_EXT_framebuffer_sRGB
WGL_EXT_pixel_format_packed_float
WGL_EXT_swap_control
WGL_NV_float_buffer
WGL_NV_multisample_coverage
WGL_NV_render_depth_texture
WGL_NV_render_texture_rectangle
WGL_NVX_DX_interop

Core features
v1.1 (100 % - 7/7)
v1.2 (100 % - 8/8)
v1.3 (100 % - 9/9)
v1.4 (100 % - 15/15)
v1.5 (100 % - 3/3)
v2.0 (100 % - 10/10)
v2.1 (100 % - 3/3)
v3.0 (100 % - 23/23)
v3.1 (100 % - 8/8)
v3.2 (100 % - 9/9)

弟十六 2010-05-18
  • 打赏
  • 举报
回复
你用OpenGL Extension Viewer试试看什么情况。

8,303

社区成员

发帖
与我相关
我的任务
社区描述
游戏开发相关内容讨论专区
社区管理员
  • 游戏开发
  • 呆呆敲代码的小Y
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧