UFO: Alien Invasion Issue Tracker
UFO: Alien Invasion
Go to the previous open issue
Go to the previous issue (open or closed)
star_faded.png
Please log in to bookmark issues
icon_project.png UFO: Alien Invasion / Closed Bug report #2491 glsl shaders don't compile
Go to the next issue (open or closed)
Go to the next open issue
This issue has been closed with status "Closed" and resolution "Not determined".
Issue basics
  • Type of issue
    Bug report
  • Category
    Engine
  • Targetted for
    Not determined
  • Status
    Closed
  • Priority
    3. Normal
User pain
  • Type of bug
    Not triaged
  • Likelihood
    Not triaged
  • Effect
    Not triaged
Affected by this issue (1)
People involved
Times and dates
  • Posted at
  • Last updated
  • Estimated time
    Not estimated
Issue details
  • Resolution
    Not determined
  • Reproducability
    Not determined
  • Severity
    Not determined
  • Complexity
    Not determined
  • Platform
    Not determined
  • Architecture
    Not determined
Attachments (0)
There is nothing attached to this issue
Duplicate issues (0)
This issue does not have any duplicates
Description
[http://sourceforge.net/p/ufoai/bugs/2491 Item 2491] imported from sourceforge.net tracker on 2013-01-28 19:35:59

GL_RENDERER: GeForce FX 5200/AGP/SSE/3DNOW!

(42) : warning C7506: OpenGL does not define the global variable gl_FragData
<stdlib>(9488) : error C5102: semantics attribute "COLOR" has too big of a numeric index (1)
(58) : warning C7011: implicit cast from "int" to "float"
===== Comments Ported from Sourceforge =====

====== tlh2000 (2010-05-06 06:15:06) ======

ufoconsole.log
====== tlh2000 (2010-05-06 06:48:55) ======

http://www.opengl.org/discussion_boards/ubbthreads.php?ubb=showflat&Number=147815
====== arisian (2010-05-06 13:27:03) ======

Try disabling post-processing and see if you still get this error; I tried to set it up so that it wouldn&#039;t even compile any code involving gl_FragData if you disabled post-processing.
====== tlh2000 (2010-05-06 14:34:57) ======

the point is that we should somehow detect that gl_FragData isn&#039;t supported - i thought we would do that by checking the frame buffer stuff in the R_InitExtension function - but a) this is not enough or b) it is not working as i thought it would work ;)

the fx cards from nvidia aren&#039;t really good cards - so it&#039;s likely that they don&#039;t support all the needed features - we just have to detect this somehow.
====== arisian (2010-05-06 17:36:45) ======

I think I&#039;ve figured out which extension we&#039;re not checking for; I&#039;ll fix it later today.
====== tlh2000 (2010-05-06 18:05:11) ======

cool - thanks a lot
====== arisian (2010-05-06 21:13:42) ======

try r29774, and let me know if that fixes it
====== tlh2000 (2010-05-07 05:48:30) ======

very nice - i don&#039;t have a nvidia fx 5200 here - let&#039;s see whether the reporter comes by here and comments on it - set to pending.
====== tlh2000 (2010-05-09 05:54:39) ======

updated ufoconsole.log from Turgid (geforce fx 5200)
====== tlh2000 (2010-05-09 05:56:38) ======

2010/05/08 12:58:03 R_LoadShader: world_vs.glsl: (60) : error C1043: size of dimension cannot be less than 1
(205) : warning C7506: OpenGL does not define the global function exp
(78) : warning C7506: OpenGL does not define the global variable gl_FragData
<stdlib>(9488) : error C5102: semantics attribute "COLOR" has too big of a numeric index (1)
====== tlh2000 (2010-05-09 05:57:04) ======

2010/05/08 12:56:38 Couldn&#039;t allocate requested number of drawBuffers in R_SetupFramebuffer!
====== arisian (2010-05-09 23:34:38) ======

Is that last error only with postprocessing enabled, or always?
====== *anonymous (2010-05-10 17:50:08) ======

Hi, I&#039;m the original reporter. I&#039;m now using r29790. With glsl shaders off, everything works well and none of those errors show up. With glsl shaders on, everything works well but FPS drops somewhat, all those errors show up, and this error shows up in the log repeated 10-20 times each second:
2010/05/09 22:45:00 R_ProgramVariable: Could not find GLOWSCALE in program geoscape.
(C:\UFOAI\UFOAIwin32BUILDenv\MinGW\ufoai\src\client\renderer\r_sphere.c: line 266)

So if glsl shaders are on, all the errors show up even with post-processing disabled.
====== arisian (2010-05-11 00:52:05) ======

Oh, this is on the geoscape? I thought we were talking about the battlescape. The geoscape uses a totally different rendering pipeline; I&#039;ll take a look and see if I can figure out what&#039;s going on.
====== edirr (2010-05-13 10:04:04) ======

I don&#039;t know if it&#039;s related, but in revision 29838 I&#039;m getting a seriously screwed up geoscape, with everything going extremely bright when GLSL shaders are enabled.

Fromn ufoconsole.log:

2010/05/12 18:58:35 ------- video initialization -------
2010/05/12 18:58:35 SDL version: 1.2.14
2010/05/12 18:58:35 I: desktop depth: 32bpp
2010/05/12 18:58:35 I: video memory: 0
2010/05/12 18:58:35 I: video driver: windib
2010/05/12 18:58:35 I: setting mode 19
2010/05/12 18:58:35 I: set swap control to 0
2010/05/12 18:58:36 I: 1920x1200 (fullscreen: yes)
2010/05/12 18:58:36 I: got 8 bits of stencil
2010/05/12 18:58:36 I: got 24 bits of depth buffer
2010/05/12 18:58:36 I: got double buffer
2010/05/12 18:58:36 I: got 8 bits for red
2010/05/12 18:58:36 I: got 8 bits for green
2010/05/12 18:58:36 I: got 8 bits for blue
2010/05/12 18:58:36 I: got 8 bits for alpha
2010/05/12 18:58:36 I: got 0 multisample buffers
GL_VENDOR: ATI Technologies Inc.2010/05/12 18:58:36 GL_VENDOR: ATI Technologies Inc.2010/05/12 18:58:36 GL_RENDERER: ATI Radeon HD 4800 Series2010/05/12 18:58:36 GL_VERSION: 3.2.9756 Compatibility Profile Context2010/05/12 18:58:36 GL_EXTENSIONS: GL_AMDX_name_gen_delete GL_AMDX_vertex_shader_tessellator GL_AMD_conservative_depth GL_AMD_draw_buffers_blend GL_AMD_performance_monitor GL_AMD_seamless_cubemap_per_texture GL_AMD_shader_stencil_export GL_AMD_texture_cube_map_array GL_AMD_texture_texture4 GL_AMD_vertex_shader_tessellator GL_ARB_color_buffer_float 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_instanced 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_half_float_pixel GL_ARB_half_float_vertex GL_ARB_imaging GL_ARB_instanced_arrays 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_provoking_vertex GL_ARB_seamless_cube_map GL_ARB_shader_objects GL_ARB_shader_texture_lod GL_ARB_shading_language_100 GL_ARB_shadow GL_ARB_shadow_ambient GL_ARB_sync GL_ARB_texture_border_clamp GL_ARB_texture_buffer_object GL_ARB_texture_compression 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_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_snorm GL_ARB_transpose_matrix GL_ARB_uniform_buffer_object GL_ARB_vertex_array_bgra 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_envmap_bumpmap GL_ATI_fragment_shader GL_ATI_meminfo GL_ATI_separate_stencil GL_ATI_texture_compression_3dc GL_ATI_texture_env_combine3 GL_ATI_texture_float GL_ATI_texture_mirror_once 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_copy_buffer GL_EXT_copy_texture 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_histogram 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_wrap GL_EXT_subtexture GL_EXT_texgen_reflection GL_EXT_texture3D GL_EXT_texture_array GL_EXT_texture_buffer_object GL_EXT_texture_buffer_object_rgb32 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_integer GL_EXT_texture_lod GL_EXT_texture_lod_bias GL_EXT_texture_mirror_clamp GL_EXT_texture_object GL_EXT_texture_rectangle GL_EXT_texture_sRGB GL_EXT_texture_shared_exponent GL_EXT_texture_snorm GL_EXT_texture_swizzle GL_EXT_timer_query GL_EXT_transform_feedback GL_EXT_vertex_array GL_EXT_vertex_array_bgra GL_IBM_texture_mirrored_repeat GL_KTX_buffer_region GL_NV_blend_square GL_NV_conditional_render GL_NV_copy_depth_to_color GL_NV_explicit_multisample GL_NV_primitive_restart GL_NV_texgen_reflection GL_SGIS_generate_mipmap GL_SGIS_texture_edge_clamp GL_SGIS_texture_lod GL_SUN_multi_draw_arrays GL_WIN_swap_hint WGL_EXT_swap_control2010/05/12 18:58:36 2010/05/12 18:58:36 using GL_ARB_texture_compression
2010/05/12 18:58:36 using GL_ARB_texture_non_power_of_two
2010/05/12 18:58:36 using GL_ARB_shading_language_100
2010/05/12 18:58:36 GLSL Version: 1.50
2010/05/12 18:58:36 using GL_ARB_framebuffer_object
2010/05/12 18:58:36 max draw buffers: 8
2010/05/12 18:58:36 max render buffer size: 8192
2010/05/12 18:58:36 max color attachments: 8
2010/05/12 18:58:36 using GL_ARB_draw_buffers
2010/05/12 18:58:36 max supported lights: 8
2010/05/12 18:58:36 max texture units: 8
2010/05/12 18:58:36 max texture coords: 16
2010/05/12 18:58:36 max vertex attributes: 16
2010/05/12 18:58:36 max texture size: detected 8192
2010/05/12 18:58:36 ...but using 2048 as requested
2010/05/12 18:58:36 Using low resolution globe textures as requested.
2010/05/12 18:58:36 SDL_image version 1.2.6
2010/05/12 18:58:38 SDL_ttf version 2.0.9 - we need at least 2.0.7
2010/05/12 18:58:38 ------- sound initialization -------


Then later, when enabling shaders in the geoscape:

2010/05/12 19:00:25 Invalid value for cvar r_postprocess
2010/05/12 19:00:25 Invalid value for cvar r_postprocess
2010/05/12 19:00:27 R_ProgramVariable: Could not find SAMPLER4 in program world. (D:\UFOAIwin32BUILDenv\MinGW\ufoai\src\client\renderer\r_program.c: line 654)
2010/05/12 19:00:27 R_ProgramVariable: Could not find GLOWSCALE in program world. (D:\UFOAIwin32BUILDenv\MinGW\ufoai\src\client\renderer\r_program.c: line 665)
2010/05/12 19:00:27 R_LoadProgram: &#039;world&#039; loaded.
2010/05/12 19:00:27 R_ProgramVariable: Could not find SAMPLER4 in program warp. (D:\UFOAIwin32BUILDenv\MinGW\ufoai\src\client\renderer\r_program.c: line 679)
2010/05/12 19:00:27 R_ProgramVariable: Could not find GLOWSCALE in program warp. (D:\UFOAIwin32BUILDenv\MinGW\ufoai\src\client\renderer\r_program.c: line 682)
2010/05/12 19:00:27 R_LoadProgram: &#039;warp&#039; loaded.
2010/05/12 19:00:27 R_LoadProgram: &#039;geoscape&#039; loaded.
2010/05/12 19:00:27 R_LoadProgram: &#039;combine2&#039; loaded.
2010/05/12 19:00:27 R_LoadProgram: &#039;convolve3&#039; loaded.
2010/05/12 19:00:27 R_LoadProgram: &#039;atmosphere&#039; loaded.
2010/05/12 19:00:27 R_LoadProgram: &#039;simple_glow&#039; loaded.
2010/05/12 19:00:28 R_ProgramVariable: Could not find SAMPLER4 in program world. (D:\UFOAIwin32BUILDenv\MinGW\ufoai\src\client\renderer\r_program.c: line 654)
2010/05/12 19:00:28 R_ProgramVariable: Could not find GLOWSCALE in program world. (D:\UFOAIwin32BUILDenv\MinGW\ufoai\src\client\renderer\r_program.c: line 665)
2010/05/12 19:00:28 R_LoadProgram: &#039;world&#039; loaded.
2010/05/12 19:00:28 R_ProgramVariable: Could not find SAMPLER4 in program warp. (D:\UFOAIwin32BUILDenv\MinGW\ufoai\src\client\renderer\r_program.c: line 679)
2010/05/12 19:00:28 R_ProgramVariable: Could not find GLOWSCALE in program warp. (D:\UFOAIwin32BUILDenv\MinGW\ufoai\src\client\renderer\r_program.c: line 682)
2010/05/12 19:00:28 R_LoadProgram: &#039;warp&#039; loaded.
2010/05/12 19:00:28 R_LoadProgram: &#039;geoscape&#039; loaded.
2010/05/12 19:00:28 R_LoadProgram: &#039;combine2&#039; loaded.
2010/05/12 19:00:28 R_LoadProgram: &#039;convolve3&#039; loaded.
2010/05/12 19:00:28 R_LoadProgram: &#039;atmosphere&#039; loaded.
2010/05/12 19:00:28 R_LoadProgram: &#039;simple_glow&#039; loaded.
2010/05/12 19:00:33 music change to MarineStrikingIntoTheUnknown (from van_mission3)
2010/05/12 19:00:33 R_ProgramVariable: Could not find GLOWSCALE in program world. (D:\UFOAIwin32BUILDenv\MinGW\ufoai\src\client\renderer\r_state.c: line 557)
2010/05/12 19:00:33 R_ProgramVariable: Could not find GLOWSCALE in program world. (D:\UFOAIwin32BUILDenv\MinGW\ufoai\src\client\renderer\r_state.c: line 566)
2010/05/12 19:00:33 R_ProgramVariable: Could not find GLOWSCALE in program world. (D:\UFOAIwin32BUILDenv\MinGW\ufoai\src\client\renderer\r_state.c: line 557)
2010/05/12 19:00:33 R_ProgramVariable: Could not find GLOWSCALE in program world. (D:\UFOAIwin32BUILDenv\MinGW\ufoai\src\client\renderer\r_state.c: line 566)
2010/05/12 19:00:33 R_ProgramVariable: Could not find GLOWSCALE in program world. (D:\UFOAIwin32BUILDenv\MinGW\ufoai\src\client\renderer\r_state.c: line 559)
2010/05/12 19:00:33 R_ProgramVariable: Could not find GLOWSCALE in program world. (D:\UFOAIwin32BUILDenv\MinGW\ufoai\src\client\renderer\r_state.c: line 566)
2010/05/12 19:00:33 R_ProgramVariable: Could not find GLOWSCALE in program world. (D:\UFOAIwin32BUILDenv\MinGW\ufoai\src\client\renderer\r_state.c: line 557)
2010/05/12 19:00:33 R_ProgramVariable: Could not find GLOWSCALE in program world. (D:\UFOAIwin32BUILDenv\MinGW\ufoai\src\client\renderer\r_state.c: line 566)
2010/05/12 19:00:33 R_ProgramVariable: Could not find GLOWSCALE in program world. (D:\UFOAIwin32BUILDenv\MinGW\ufoai\src\client\renderer\r_state.c: line 557)
2010/05/12 19:00:33 R_ProgramVariable: Could not find GLOWSCALE in program world. (D:\UFOAIwin32BUILDenv\MinGW\ufoai\src\client\renderer\r_state.c: line 566)
2010/05/12 19:00:33 R_ProgramVariable: Could not find GLOWSCALE in program world. (D:\UFOAIwin32BUILDenv\MinGW\ufoai\src\client\renderer\r_state.c: line 559)
2010/05/12 19:00:33 R_ProgramVariable: Could not find GLOWSCALE in program world. (D:\UFOAIwin32BUILDenv\MinGW\ufoai\src\client\renderer\r_state.c: line 566)
2010/05/12 19:00:33 R_ProgramVariable: Could not find GLOWSCALE in program world. (D:\UFOAIwin32BUILDenv\MinGW\ufoai\src\client\renderer\r_state.c: line 557)
2010/05/12 19:00:33 R_ProgramVariable: Could not find GLOWSCALE in program world. (D:\UFOAIwin32BUILDenv\MinGW\ufoai\src\client\renderer\r_state.c: line 566)
2010/05/12 19:00:33 R_ProgramVariable: Could not find GLOWSCALE in program world. (D:\UFOAIwin32BUILDenv\MinGW\ufoai\src\client\renderer\r_state.c: line 557)
2010/05/12 19:00:33 R_ProgramVariable: Could not find GLOWSCALE in program world. (D:\UFOAIwin32BUILDenv\MinGW\ufoai\src\client\renderer\r_state.c: line 566)

Shaders off everything works fine, but when enabled, everything is screwy. It looks like it could be related to this, or it could be a separate issue. I&#039;m compiling the newest revision right now, so if anything does change, I&#039;ll comment on it.

====== arisian (2010-05-13 13:06:17) ======

Is "postprocessing" enabled or disabled when you see this problem?
====== edirr (2010-05-13 14:37:05) ======

Postprocessing is enabled. The entire geoscape turns intolerably bright and all objects and effects disappear from the globe. When it&#039;s turned off, geoscape is okay even if the shaders are on. Now using revision 29887 and the same problem persists.

While we&#039;re on the subject, ATI Radeon HD4870 still gets all models on battlescape solid black if shaders are enabled at all, but that&#039;s related to another tracker item. Figured I might as well mention it here too, since both it and this geoscape issue are shader/postprocessing problems. I&#039;ll upload a screenshot later.
====== edirr (2010-05-13 15:40:17) ======

Seems I can&#039;t upload a file to this item, so I&#039;ll post it to the forum instead. With revision 29887, the error messages in ufoconsole.log are somewhat different from the ones in 29838.

Video Initialization:

2010/05/13 17:34:13 ----- console initialization -------
2010/05/13 17:34:13 Console initialized.
2010/05/13 17:34:13 ------- video initialization -------
2010/05/13 17:34:13 SDL version: 1.2.14
2010/05/13 17:34:13 I: desktop depth: 32bpp
2010/05/13 17:34:13 I: video memory: 0
2010/05/13 17:34:13 I: video driver: windib
2010/05/13 17:34:13 I: setting mode 19
2010/05/13 17:34:13 I: set swap control to 0
2010/05/13 17:34:15 I: 1920x1200 (fullscreen: yes)
2010/05/13 17:34:15 I: got 8 bits of stencil
2010/05/13 17:34:15 I: got 24 bits of depth buffer
2010/05/13 17:34:15 I: got double buffer
2010/05/13 17:34:15 I: got 8 bits for red
2010/05/13 17:34:15 I: got 8 bits for green
2010/05/13 17:34:15 I: got 8 bits for blue
2010/05/13 17:34:15 I: got 8 bits for alpha
2010/05/13 17:34:15 I: got 0 multisample buffers
GL_VENDOR: ATI Technologies Inc.2010/05/13 17:34:15 GL_VENDOR: ATI Technologies Inc.2010/05/13 17:34:15 GL_RENDERER: ATI Radeon HD 4800 Series2010/05/13 17:34:15 GL_VERSION: 3.2.9756 Compatibility Profile Context2010/05/13 17:34:15 GL_EXTENSIONS: GL_AMDX_name_gen_delete GL_AMDX_vertex_shader_tessellator GL_AMD_conservative_depth GL_AMD_draw_buffers_blend GL_AMD_performance_monitor GL_AMD_seamless_cubemap_per_texture GL_AMD_shader_stencil_export GL_AMD_texture_cube_map_array GL_AMD_texture_texture4 GL_AMD_vertex_shader_tessellator GL_ARB_color_buffer_float 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_instanced 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_half_float_pixel GL_ARB_half_float_vertex GL_ARB_imaging GL_ARB_instanced_arrays 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_provoking_vertex GL_ARB_seamless_cube_map GL_ARB_shader_objects GL_ARB_shader_texture_lod GL_ARB_shading_language_100 GL_ARB_shadow GL_ARB_shadow_ambient GL_ARB_sync GL_ARB_texture_border_clamp GL_ARB_texture_buffer_object GL_ARB_texture_compression 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_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_snorm GL_ARB_transpose_matrix GL_ARB_uniform_buffer_object GL_ARB_vertex_array_bgra 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_envmap_bumpmap GL_ATI_fragment_shader GL_ATI_meminfo GL_ATI_separate_stencil GL_ATI_texture_compression_3dc GL_ATI_texture_env_combine3 GL_ATI_texture_float GL_ATI_texture_mirror_once 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_copy_buffer GL_EXT_copy_texture 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_histogram 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_wrap GL_EXT_subtexture GL_EXT_texgen_reflection GL_EXT_texture3D GL_EXT_texture_array GL_EXT_texture_buffer_object GL_EXT_texture_buffer_object_rgb32 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_integer GL_EXT_texture_lod GL_EXT_texture_lod_bias GL_EXT_texture_mirror_clamp GL_EXT_texture_object GL_EXT_texture_rectangle GL_EXT_texture_sRGB GL_EXT_texture_shared_exponent GL_EXT_texture_snorm GL_EXT_texture_swizzle GL_EXT_timer_query GL_EXT_transform_feedback GL_EXT_vertex_array GL_EXT_vertex_array_bgra GL_IBM_texture_mirrored_repeat GL_KTX_buffer_region GL_NV_blend_square GL_NV_conditional_render GL_NV_copy_depth_to_color GL_NV_explicit_multisample GL_NV_primitive_restart GL_NV_texgen_reflection GL_SGIS_generate_mipmap GL_SGIS_texture_edge_clamp GL_SGIS_texture_lod GL_SUN_multi_draw_arrays GL_WIN_swap_hint WGL_EXT_swap_control2010/05/13 17:34:15 2010/05/13 17:34:15 using GL_ARB_texture_compression
2010/05/13 17:34:15 using GL_ARB_texture_non_power_of_two
2010/05/13 17:34:15 using GL_ARB_shading_language_100
2010/05/13 17:34:15 GLSL Version: 1.50
2010/05/13 17:34:15 using GL_ARB_framebuffer_object
2010/05/13 17:34:15 max draw buffers: 8
2010/05/13 17:34:15 max render buffer size: 8192
2010/05/13 17:34:15 max color attachments: 8
2010/05/13 17:34:15 using GL_ARB_draw_buffers
2010/05/13 17:34:15 max supported lights: 8
2010/05/13 17:34:15 max texture units: 8
2010/05/13 17:34:15 max texture coords: 16
2010/05/13 17:34:15 max vertex attributes: 16
2010/05/13 17:34:15 max texture size: detected 8192
2010/05/13 17:34:15 ...but using 2048 as requested
2010/05/13 17:34:15 Using low resolution globe textures as requested.
2010/05/13 17:34:15 SDL_image version 1.2.6
2010/05/13 17:34:16 SDL_ttf version 2.0.9 - we need at least 2.0.7
2010/05/13 17:34:16 ------- sound initialization -------

And the errors:

2010/05/13 17:35:05 File &#039;slot5&#039; successfully loaded from compressed xml savegame.
2010/05/13 17:35:05 music change to karlmacklin_geoscape (from van_theme)
2010/05/13 17:35:05 music change to van_geoscape (from karlmacklin_geoscape)
2010/05/13 17:35:06 R_ProgramVariable: Could not find GLOWSCALE in program geoscape. (D:\UFOAIwin32BUILDenv\MinGW\ufoai\src\client\renderer\r_sphere.c: line 266)
2010/05/13 17:35:08 R_ProgramVariable: Could not find GLOWSCALE in program geoscape. (D:\UFOAIwin32BUILDenv\MinGW\ufoai\src\client\renderer\r_sphere.c: line 266)
2010/05/13 17:35:08 R_ProgramVariable: Could not find GLOWSCALE in program geoscape. (D:\UFOAIwin32BUILDenv\MinGW\ufoai\src\client\renderer\r_sphere.c: line 266)
2010/05/13 17:35:08 R_ProgramVariable: Could not find GLOWSCALE in program geoscape. (D:\UFOAIwin32BUILDenv\MinGW\ufoai\src\client\renderer\r_sphere.c: line 266)
2010/05/13 17:35:08 R_ProgramVariable: Could not find GLOWSCALE in program geoscape. (D:\UFOAIwin32BUILDenv\MinGW\ufoai\src\client\renderer\r_sphere.c: line 266)
2010/05/13 17:35:08 R_ProgramVariable: Could not find GLOWSCALE in program geoscape. (D:\UFOAIwin32BUILDenv\MinGW\ufoai\src\client\renderer\r_sphere.c: line 266)



That same error repeats some tens of thousands of times. Does this merit a new tracker item?

I posted a forum thread with the screenshot at http://ufoai.ninex.info/forum/index.php?topic=4799.0


====== tlh2000 (2010-05-13 17:45:54) ======

glow scale bug image from forum thread
====== arisian (2010-05-13 19:02:19) ======

Did you re-start UFO:AI after enabling post-processing? It sounds like the non-postprocessing version of the GLSL is getting used with the postprocessing version of the C code, which can happen if you switch the postprocessing on (or off, though that&#039;s not as bad) without re-starting the program. Probably we should force re-compilation of the GLSL code whenever these options are changed, but that isn&#039;t being done yet.
====== edirr (2010-05-13 20:14:35) ======

No, actually I didn&#039;t. Justtried it now and restarting after enabling the shader post processing eliminates the problem. Looks like you&#039;re right about the cause of it. Your proposed solution would certainly do away with it for good. For now, a mouseover tooltip about requiring restart for enabling them would probably eliminate spurious bug reports.
====== arisian (2010-05-13 20:58:59) ======

Yeah, sorry about that; these new features aren&#039;t totally polished yet. I haven&#039;t really looked into how hard it would be to re-start the rendering system when options are changed, but it must be possible, since it gets done when the resolution is changed. In the mean time, I&#039;ll add that tooltip ;)
====== tlh2000 (2010-05-26 05:29:54) ======

what is the state of this tracker item? the restarting of glsl when changing glsl-related cvars should be fixed - but what about the compilation?
====== arisian (2010-06-11 13:20:18) ======

So far as I&#039;m aware, everything in the 2.3 branch should compile. Since I&#039;m not the one who&#039;s been reporting problems, though, it&#039;s hard to be sure.
====== tlh2000 (2010-06-19 06:39:31) ======

will close this now - my card is just too old - and it compiles fine on newer cards now
Steps to reproduce this issue
Nothing entered.
Todos (0 / 0)
Issue created
footer_logo.png The Bug Genie 4.3.1 | Support | Feedback spinning_16.gif