Crashes in Tutorials

I got the latest source code.

02_Clock Tutorial Issue

Just use arrow Left or arrow Right and it reproduces every time.

Thread 1, Queue : com.apple.main-thread
#0	0x00000001018d7565 in _orxDebug_Break at /Users/sergei/SWDev/CrossPlatform/orx/code/build/mac/xcode/../../../src/debug/orxDebug.c:306
#1	0x00000001018c3ff0 in orxClock_SetModifier at /Users/sergei/SWDev/CrossPlatform/orx/code/build/mac/xcode/../../../src/core/orxClock.c:1059
#2	0x000000010000119c in InputUpdate at /Users/sergei/SWDev/CrossPlatform/orx/tutorial/build/mac/xcode/../../../src/02_Clock.c:132
#3	0x00000001018c2f2a in orxClock_Update at /Users/sergei/SWDev/CrossPlatform/orx/code/build/mac/xcode/../../../src/core/orxClock.c:555
#4	0x000000010000169a in orx_Execute at /Users/sergei/SWDev/CrossPlatform/orx/tutorial/build/mac/xcode/../../../../code/include/orx.h:346
#5	0x0000000100001432 in main at /Users/sergei/SWDev/CrossPlatform/orx/tutorial/build/mac/xcode/../../../src/02_Clock.c:230
#6	0x0000000102ead7e1 in start ()

Exception State Registers
trapno unsigned int 0x00000003
err unsigned int 0x00000000
faultvaddr unsigned long 0x000000011ccba000


12_Lighting

All I have to do is start the application. Wait for no more that 2 or 3 seconds. Don't touch keyboard or mouse. Mouse is even outside of the window.

Thread 1, Queue : com.apple.main-thread
#0	0x00000001018da565 in _orxDebug_Break at /Users/sergei/SWDev/CrossPlatform/orx/code/build/mac/xcode/../../../src/debug/orxDebug.c:306
#1	0x000000010193eb64 in orxDisplay_GLFW_SetShaderBitmap(void*, int, __orxBITMAP_t const*) at /Users/sergei/SWDev/CrossPlatform/orx/code/build/mac/xcode/../../../include/../plugins/Display/GLFW/orxDisplay.c:3978
#2	0x00000001018db862 in orxDisplay_SetShaderBitmap at /Users/sergei/SWDev/CrossPlatform/orx/code/build/mac/xcode/../../../src/display/orxDisplay.c:361
#3	0x000000010197811c in orxShader_Start at /Users/sergei/SWDev/CrossPlatform/orx/code/build/mac/xcode/../../../src/render/orxShader.c:794
#4	0x000000010197afa1 in orxShaderPointer_Start at /Users/sergei/SWDev/CrossPlatform/orx/code/build/mac/xcode/../../../src/render/orxShaderPointer.c:481
#5	0x0000000101979f5d in orxShaderPointer_EventHandler(__orxEVENT_t const*) at /Users/sergei/SWDev/CrossPlatform/orx/code/build/mac/xcode/../../../src/render/orxShaderPointer.c:145
#6	0x00000001018dc390 in orxEvent_Send at /Users/sergei/SWDev/CrossPlatform/orx/code/build/mac/xcode/../../../src/core/orxEvent.c:379
#7	0x000000010196ea09 in orxRender_Home_RenderObject(__orxOBJECT_t const*, __orxBITMAP_t*, __orxFRAME_t*, __orxDISPLAY_SMOOTHING_t, __orxDISPLAY_BLEND_MODE_t) at /Users/sergei/SWDev/CrossPlatform/orx/code/build/mac/xcode/../../../include/../plugins/Render/Home/orxRender.c:1261
#8	0x0000000101969f05 in orxRender_Home_RenderViewport(__orxVIEWPORT_t const*) at /Users/sergei/SWDev/CrossPlatform/orx/code/build/mac/xcode/../../../include/../plugins/Render/Home/orxRender.c:1987
#9	0x00000001019520c0 in orxRender_Home_RenderAll(__orxCLOCK_INFO_t const*, void*) at /Users/sergei/SWDev/CrossPlatform/orx/code/build/mac/xcode/../../../include/../plugins/Render/Home/orxRender.c:2083
#10	0x00000001018c5f2a in orxClock_Update at /Users/sergei/SWDev/CrossPlatform/orx/code/build/mac/xcode/../../../src/core/orxClock.c:555
#11	0x0000000100002a0a in orx_Execute at /Users/sergei/SWDev/CrossPlatform/orx/tutorial/build/mac/xcode/../../../../code/include/orx.h:346
#12	0x00000001000027a2 in main at /Users/sergei/SWDev/CrossPlatform/orx/tutorial/build/mac/xcode/../../../src/12_Lighting.c:484
#13	0x0000000102eb07e1 in start ()

Console:
[11:26:44] [LOG] 
- 'MOUSE_LEFT' will create a new light under the cursor
- 'MOUSE_RIGHT' will clear all the lights from the scene
- 'MOUSE_WHEEL_UP' will increase the radius of the current light
- 'MOUSE_WHEEL_DOWN' will decrease the radius of the current light
- 'KEY_SPACE' will toggle alpha on light (ie. make holes in lit objects)
[11:26:44] [DISPLAY] [orxDisplay.c:orxDisplay_GLFW_CompileShader():644] Couldn't compile fragment shader:
ERROR: 0:5: '/' does not operate on 'float' and 'int'
ERROR: 0:13: '^' does not operate on 'int' and 'int'
ERROR: 0:13: Use of undeclared identifier 'vNormalizer'


[11:26:46] [ASSERT] [orxDisplay.c:orxDisplay_GLFW_SetShaderBitmap():3978] [ASSERT] : <eError == GL_NO_ERROR && "OpenGL error code: 0x502">
(lldb) 

Comments

  • edited April 2013
    I'll have a look at the first one tonight.

    As for the second one, it means your OpenGL driver isn't able to compile the shader used by the tutorial #12.

    The message "ERROR: 0:13: '^' does not operate on 'int' and 'int'" let me think your driver isn't capable of GLSL 1.30, which means you're using an OpenGL version < 3.0.

    Is there a way for you to update your OpenGL drivers and try again?
  • edited April 2013
    I did a quick try on windows 7/VS2010 and tutorial #2 worked fine without any crash.
    I'll try on a macbook tonight.
  • edited April 2013
    iarwain wrote:
    As for the second one, it means your OpenGL driver isn't able to compile the shader used by the tutorial #12.

    The message "ERROR: 0:13: '^' does not operate on 'int' and 'int'" let me think your driver isn't capable of GLSL 1.30, which means you're using an OpenGL version < 3.0.

    Is there a way for you to update your OpenGL drivers and try again?

    You are correct. I loaded free app "OpenGL Extension Viewer 4.0" on my mac and it reports:

    Renderer: AMD Radeon HD 6750M.
    Version: 2.1 ATI-1.6.37
    Shading language version: 1.20

    I am not sure what I can do to get an updated version. I am on the latest os 10.8.3 and my Mac software update is fully up to date. If I am missing an update I will do it, but I don't know what it would be. Otherwise, it is good to know the issue is with my hardware.
  • edited April 2013
    Mmh, interesting, I have a 2008 macbook with 10.6.x and my OpenGL version is 3.2 (NVidia card).

    Have you looked directly on ATI website for more recent mac drivers?

    Otherwise, it's only the shader that is not working, you can either rewrite them or remove them entirely (the one not working is for display the checkered background, maybe the light/bumpmap one works?).
  • edited April 2013
    Now I am a bit confused. The app I loaded offers a couple options: Renderers, OpenGL Profile, Database. I can choose either core or compatibility OpenGL profiles.

    With Core I get:

    Renderer: AMD Radeon HD 6750M OpenGL Engine
Vendor: ATI Technologies Inc.
Memory: 1024 MB
Version: 3.2 ATI-1.6.37
Device: MacBookPro8,2
Shading language version: 1.50

    With Compatibility I get:

    Renderer: AMD Radeon HD 6750M OpenGL Engine
Vendor: ATI Technologies Inc.
Memory: 1024 MB
Version: 2.1 ATI-1.6.37
Device: MacBookPro8,2
Shading language version: 1.20

    Is there a chance I could compile the code differently and don't enable something? I had to mess with XCode project settings quite a bit until I got it all working (mostly locations and architecture).

    I don't really want to waste your time on the issue. I have no problem accepting the behavior for what it is.

    Here is the full report for the core
    
Renderer: AMD Radeon HD 6750M OpenGL Engine
Vendor: ATI Technologies Inc.
Memory: 1024 MB
Version: 3.2 ATI-1.6.37
Device: MacBookPro8,2
Shading language version: 1.50


Max texture size: 16384 x 16384
Max vertex texture image units: 16
Max texture image units: 16
Max geometry texture units: 16
Max anisotropic filtering value: 16
Max viewport size: 16384 x 16384
Max Viewports: 16
Max Clip Distances: 8
Max samples: 8


Extensions: 18

GL_APPLE_client_storage
GL_APPLE_container_object_shareable
GL_APPLE_object_purgeable
GL_APPLE_rgb_422
GL_APPLE_row_bytes
GL_APPLE_texture_range
GL_ARB_explicit_attrib_location
GL_ARB_instanced_arrays
GL_ARB_occlusion_query2
GL_ARB_separate_shader_objects
GL_ARB_shader_bit_encoding
GL_ARB_texture_swizzle
GL_ARB_timer_query
GL_ATI_texture_mirror_once
GL_EXT_texture_compression_s3tc
GL_EXT_texture_filter_anisotropic
GL_EXT_texture_mirror_clamp
GL_EXT_texture_sRGB_decode

    Core features
    v3.0 (100 % - 23/23)
v3.1 (100 % - 8/8)
v3.2 (100 % - 10/10)
v3.3 (50 % - 5/10)
v4.0 (0 % - 0/14)
v4.1 (14 % - 1/7)
v4.2 (0 % - 0/12)
v4.3 (0 % - 0/18)

    OpenGL driver version check (Current: 3.2 ATI-1.6.37, Latest known: 2.1 ATI-1.6.37):
Latest version of display drivers found
According the database, you are running the latest display drivers for your video card.

    Few texture units found
This may slow down some applications using fragment programs or extensive texture mapping.

    Extension verification: 
GL_AMD_conservative_depth was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_AMD_debug_output was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_AMD_depth_clamp_separate was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_AMD_draw_buffers_blend was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_AMD_name_gen_delete was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_AMD_performance_monitor was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_AMD_sample_positions was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_AMD_seamless_cubemap_per_texture was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_AMD_shader_stencil_export was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_AMD_shader_trace was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_AMD_texture_cube_map_array was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_AMD_texture_texture4 was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_AMD_transform_feedback3_lines_triangles was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_AMD_vertex_shader_tessellator was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_AMDX_debug_output was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_AMDX_vertex_shader_tessellator was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_APPLE_aux_depth_stencil was not found, but is available in driver version 2.1 ATI-1.6.37 
GL_APPLE_element_array was not found, but is available in driver version 2.1 ATI-1.6.37 
GL_APPLE_fence was not found, but is available in driver version 2.1 ATI-1.6.37 
GL_APPLE_float_pixels was not found, but is available in driver version 2.1 ATI-1.6.37 
GL_APPLE_flush_buffer_range was not found, but is available in driver version 2.1 ATI-1.6.37 
GL_APPLE_flush_render was not found, but is available in driver version 2.1 ATI-1.6.37 
GL_APPLE_packed_pixels was not found, but is available in driver version 2.1 ATI-1.6.37 
GL_APPLE_pixel_buffer was not found, but is available in driver version 2.1 ATI-1.6.37 
GL_APPLE_specular_vector was not found, but is available in driver version 2.1 ATI-1.6.37 
GL_APPLE_transform_hint was not found, but is available in driver version 2.1 ATI-1.6.37 
GL_APPLE_vertex_array_object was not found, but is available in driver version 2.1 ATI-1.6.37 
GL_APPLE_vertex_array_range was not found, but is available in driver version 2.1 ATI-1.6.37 
GL_APPLE_vertex_point_size was not found, but is available in driver version 2.1 ATI-1.6.37 
GL_APPLE_vertex_program_evaluators was not found, but is available in driver version 2.1 ATI-1.6.37 
GL_APPLE_ycbcr_422 was not found, but is available in driver version 2.1 ATI-1.6.37 
GL_ARB_blend_func_extended was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_ARB_color_buffer_float was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_ARB_color_buffer_float was not found, but is available in driver version 2.1 ATI-1.6.37 
GL_ARB_compatibility was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_ARB_copy_buffer was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_ARB_depth_buffer_float was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_ARB_depth_buffer_float was not found, but is available in driver version 2.1 ATI-1.6.37 
GL_ARB_depth_clamp was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_ARB_depth_clamp was not found, but is available in driver version 2.1 ATI-1.6.37 
GL_ARB_depth_texture was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_ARB_depth_texture was not found, but is available in driver version 2.1 ATI-1.6.37 
GL_ARB_draw_buffers was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_ARB_draw_buffers was not found, but is available in driver version 2.1 ATI-1.6.37 
GL_ARB_draw_buffers_blend was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_ARB_draw_elements_base_vertex was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_ARB_draw_elements_base_vertex was not found, but is available in driver version 2.1 ATI-1.6.37 
GL_ARB_draw_indirect was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_ARB_draw_instanced was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_ARB_draw_instanced was not found, but is available in driver version 2.1 ATI-1.6.37 
GL_ARB_ES2_compatibility was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_ARB_fragment_coord_conventions was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_ARB_fragment_program was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_ARB_fragment_program was not found, but is available in driver version 2.1 ATI-1.6.37 
GL_ARB_fragment_program_shadow was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_ARB_fragment_program_shadow was not found, but is available in driver version 2.1 ATI-1.6.37 
GL_ARB_fragment_shader was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_ARB_fragment_shader was not found, but is available in driver version 2.1 ATI-1.6.37 
GL_ARB_framebuffer_object was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_ARB_framebuffer_object was not found, but is available in driver version 2.1 ATI-1.6.37 
GL_ARB_framebuffer_sRGB was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_ARB_framebuffer_sRGB was not found, but is available in driver version 2.1 ATI-1.6.37 
GL_ARB_geometry_shader4 was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_ARB_get_program_binary was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_ARB_gpu_shader5 was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_ARB_gpu_shader_fp64 was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_ARB_half_float_pixel was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_ARB_half_float_pixel was not found, but is available in driver version 2.1 ATI-1.6.37 
GL_ARB_half_float_vertex was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_ARB_half_float_vertex was not found, but is available in driver version 2.1 ATI-1.6.37 
GL_ARB_imaging was not found, but is available in driver version 4.1.10428 Compatibility Profil 
GL_ARB_imaging was not found, but is available in driver version 2.1 ATI-1.6.37 
GL_ARB_map_buffer_range was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_ARB_multisample was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_ARB_multisample was not found, but is available in driver version 2.1 ATI-1.6.37 
GL_ARB_multitexture was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_ARB_multitexture was not found, but is available in driver version 2.1 ATI-1.6.37 
GL_ARB_occlusion_query was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_ARB_occlusion_query was not found, but is available in driver version 2.1 ATI-1.6.37 
GL_ARB_pixel_buffer_object was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_ARB_pixel_buffer_object was not found, but is available in driver version 2.1 ATI-1.6.37 
GL_ARB_point_parameters was not found, but is available in driver version 4.1.10428 Compatibility Profil 
GL_ARB_point_parameters was not found, but is available in driver version 2.1 ATI-1.6.37 
GL_ARB_point_sprite was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_ARB_point_sprite was not found, but is available in driver version 2.1 ATI-1.6.37 
GL_ARB_provoking_vertex was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_ARB_provoking_vertex was not found, but is available in driver version 2.1 ATI-1.6.37 
GL_ARB_sample_shading was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_ARB_sampler_objects was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_ARB_seamless_cube_map was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_ARB_seamless_cube_map was not found, but is available in driver version 2.1 ATI-1.6.37 
GL_ARB_shader_objects was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_ARB_shader_objects was not found, but is available in driver version 2.1 ATI-1.6.37 
GL_ARB_shader_precision was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_ARB_shader_stencil_export was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_ARB_shader_subroutine was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_ARB_shader_texture_lod was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_ARB_shader_texture_lod was not found, but is available in driver version 2.1 ATI-1.6.37 
GL_ARB_shading_language_100 was not found, but is available in driver version 4.1.10428 Compatibility Profil 
GL_ARB_shading_language_100 was not found, but is available in driver version 2.1 ATI-1.6.37 
GL_ARB_shadow was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_ARB_shadow was not found, but is available in driver version 2.1 ATI-1.6.37 
GL_ARB_shadow_ambient was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_ARB_shadow_ambient was not found, but is available in driver version 2.1 ATI-1.6.37 
GL_ARB_sync was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_ARB_sync was not found, but is available in driver version 2.1 ATI-1.6.37 
GL_ARB_tessellation_shader was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_ARB_texture_border_clamp was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_ARB_texture_border_clamp was not found, but is available in driver version 2.1 ATI-1.6.37 
GL_ARB_texture_buffer_object was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_ARB_texture_buffer_object_rgb32 was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_ARB_texture_compression was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_ARB_texture_compression was not found, but is available in driver version 2.1 ATI-1.6.37 
GL_ARB_texture_compression_bptc was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_ARB_texture_compression_rgtc was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_ARB_texture_compression_rgtc was not found, but is available in driver version 2.1 ATI-1.6.37 
GL_ARB_texture_cube_map was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_ARB_texture_cube_map was not found, but is available in driver version 2.1 ATI-1.6.37 
GL_ARB_texture_cube_map_array was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_ARB_texture_env_add was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_ARB_texture_env_add was not found, but is available in driver version 2.1 ATI-1.6.37 
GL_ARB_texture_env_combine was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_ARB_texture_env_combine was not found, but is available in driver version 2.1 ATI-1.6.37 
GL_ARB_texture_env_crossbar was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_ARB_texture_env_crossbar was not found, but is available in driver version 2.1 ATI-1.6.37 
GL_ARB_texture_env_dot3 was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_ARB_texture_env_dot3 was not found, but is available in driver version 2.1 ATI-1.6.37 
GL_ARB_texture_float was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_ARB_texture_float was not found, but is available in driver version 2.1 ATI-1.6.37 
GL_ARB_texture_gather was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_ARB_texture_mirrored_repeat was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_ARB_texture_mirrored_repeat was not found, but is available in driver version 2.1 ATI-1.6.37 
GL_ARB_texture_multisample was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_ARB_texture_non_power_of_two was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_ARB_texture_non_power_of_two was not found, but is available in driver version 2.1 ATI-1.6.37 
GL_ARB_texture_query_lod was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_ARB_texture_rectangle was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_ARB_texture_rectangle was not found, but is available in driver version 2.1 ATI-1.6.37 
GL_ARB_texture_rg was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_ARB_texture_rg was not found, but is available in driver version 2.1 ATI-1.6.37 
GL_ARB_texture_rgb10_a2ui was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_ARB_texture_snorm was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_ARB_transform_feedback2 was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_ARB_transform_feedback3 was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_ARB_transpose_matrix was not found, but is available in driver version 4.1.10428 Compatibility Profil 
GL_ARB_transpose_matrix was not found, but is available in driver version 2.1 ATI-1.6.37 
GL_ARB_uniform_buffer_object was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_ARB_vertex_array_bgra was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_ARB_vertex_array_bgra was not found, but is available in driver version 2.1 ATI-1.6.37 
GL_ARB_vertex_array_object was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_ARB_vertex_attrib_64bit was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_ARB_vertex_blend was not found, but is available in driver version 2.1 ATI-1.6.37 
GL_ARB_vertex_buffer_object was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_ARB_vertex_buffer_object was not found, but is available in driver version 2.1 ATI-1.6.37 
GL_ARB_vertex_program was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_ARB_vertex_program was not found, but is available in driver version 2.1 ATI-1.6.37 
GL_ARB_vertex_shader was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_ARB_vertex_shader was not found, but is available in driver version 2.1 ATI-1.6.37 
GL_ARB_vertex_type_2_10_10_10_rev was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_ARB_viewport_array was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_ARB_window_pos was not found, but is available in driver version 4.1.10428 Compatibility Profil 
GL_ARB_window_pos was not found, but is available in driver version 2.1 ATI-1.6.37 
GL_ATI_blend_equation_separate was not found, but is available in driver version 2.1 ATI-1.6.37 
GL_ATI_blend_weighted_minmax was not found, but is available in driver version 2.1 ATI-1.6.37 
GL_ATI_draw_buffers was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_ATI_envmap_bumpmap was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_ATI_fragment_shader was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_ATI_meminfo was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_ATI_separate_stencil was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_ATI_separate_stencil was not found, but is available in driver version 2.1 ATI-1.6.37 
GL_ATI_texture_compression_3dc was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_ATI_texture_compression_3dc was not found, but is available in driver version 2.1 ATI-1.6.37 
GL_ATI_texture_env_combine3 was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_ATI_texture_env_combine3 was not found, but is available in driver version 2.1 ATI-1.6.37 
GL_ATI_texture_float was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_ATI_texture_float was not found, but is available in driver version 2.1 ATI-1.6.37 
GL_EXT_abgr was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_EXT_abgr was not found, but is available in driver version 2.1 ATI-1.6.37 
GL_EXT_bgra was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_EXT_bgra was not found, but is available in driver version 2.1 ATI-1.6.37 
GL_EXT_bindable_uniform was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_EXT_bindable_uniform was not found, but is available in driver version 2.1 ATI-1.6.37 
GL_EXT_blend_color was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_EXT_blend_color was not found, but is available in driver version 2.1 ATI-1.6.37 
GL_EXT_blend_equation_separate was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_EXT_blend_equation_separate was not found, but is available in driver version 2.1 ATI-1.6.37 
GL_EXT_blend_func_separate was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_EXT_blend_func_separate was not found, but is available in driver version 2.1 ATI-1.6.37 
GL_EXT_blend_minmax was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_EXT_blend_minmax was not found, but is available in driver version 2.1 ATI-1.6.37 
GL_EXT_blend_subtract was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_EXT_blend_subtract was not found, but is available in driver version 2.1 ATI-1.6.37 
GL_EXT_clip_volume_hint was not found, but is available in driver version 2.1 ATI-1.6.37 
GL_EXT_compiled_vertex_array was not found, but is available in driver version 4.1.10428 Compatibility Profil 
GL_EXT_copy_buffer was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_EXT_copy_texture was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_EXT_direct_state_access was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_EXT_draw_buffers2 was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_EXT_draw_buffers2 was not found, but is available in driver version 2.1 ATI-1.6.37 
GL_EXT_draw_instanced was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_EXT_draw_range_elements was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_EXT_draw_range_elements was not found, but is available in driver version 2.1 ATI-1.6.37 
GL_EXT_fog_coord was not found, but is available in driver version 4.1.10428 Compatibility Profil 
GL_EXT_fog_coord was not found, but is available in driver version 2.1 ATI-1.6.37 
GL_EXT_framebuffer_blit was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_EXT_framebuffer_blit was not found, but is available in driver version 2.1 ATI-1.6.37 
GL_EXT_framebuffer_multisample was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_EXT_framebuffer_multisample was not found, but is available in driver version 2.1 ATI-1.6.37 
GL_EXT_framebuffer_object was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_EXT_framebuffer_object was not found, but is available in driver version 2.1 ATI-1.6.37 
GL_EXT_framebuffer_sRGB was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_EXT_framebuffer_sRGB was not found, but is available in driver version 2.1 ATI-1.6.37 
GL_EXT_geometry_shader4 was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_EXT_geometry_shader4 was not found, but is available in driver version 2.1 ATI-1.6.37 
GL_EXT_gpu_program_parameters was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_EXT_gpu_program_parameters was not found, but is available in driver version 2.1 ATI-1.6.37 
GL_EXT_gpu_shader4 was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_EXT_gpu_shader4 was not found, but is available in driver version 2.1 ATI-1.6.37 
GL_EXT_histogram was not found, but is available in driver version 4.1.10428 Compatibility Profil 
GL_EXT_multi_draw_arrays was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_EXT_multi_draw_arrays was not found, but is available in driver version 2.1 ATI-1.6.37 
GL_EXT_packed_depth_stencil was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_EXT_packed_depth_stencil was not found, but is available in driver version 2.1 ATI-1.6.37 
GL_EXT_packed_float was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_EXT_packed_float was not found, but is available in driver version 2.1 ATI-1.6.37 
GL_EXT_packed_pixels was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_EXT_pixel_buffer_object was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_EXT_point_parameters was not found, but is available in driver version 4.1.10428 Compatibility Profil 
GL_EXT_provoking_vertex was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_EXT_provoking_vertex was not found, but is available in driver version 2.1 ATI-1.6.37 
GL_EXT_rescale_normal was not found, but is available in driver version 4.1.10428 Compatibility Profil 
GL_EXT_rescale_normal was not found, but is available in driver version 2.1 ATI-1.6.37 
GL_EXT_secondary_color was not found, but is available in driver version 4.1.10428 Compatibility Profil 
GL_EXT_secondary_color was not found, but is available in driver version 2.1 ATI-1.6.37 
GL_EXT_separate_specular_color was not found, but is available in driver version 4.1.10428 Compatibility Profil 
GL_EXT_separate_specular_color was not found, but is available in driver version 2.1 ATI-1.6.37 
GL_EXT_shader_image_load_store was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_EXT_shadow_funcs was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_EXT_shadow_funcs was not found, but is available in driver version 2.1 ATI-1.6.37 
GL_EXT_stencil_two_side was not found, but is available in driver version 2.1 ATI-1.6.37 
GL_EXT_stencil_wrap was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_EXT_stencil_wrap was not found, but is available in driver version 2.1 ATI-1.6.37 
GL_EXT_subtexture was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_EXT_texgen_reflection was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_EXT_texture3D was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_EXT_texture_array was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_EXT_texture_array was not found, but is available in driver version 2.1 ATI-1.6.37 
GL_EXT_texture_buffer_object was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_EXT_texture_compression_bptc was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_EXT_texture_compression_dxt1 was not found, but is available in driver version 2.1 ATI-1.6.37 
GL_EXT_texture_compression_latc was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_EXT_texture_compression_rgtc was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_EXT_texture_cube_map was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_EXT_texture_edge_clamp was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_EXT_texture_env_add was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_EXT_texture_env_add was not found, but is available in driver version 2.1 ATI-1.6.37 
GL_EXT_texture_env_combine was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_EXT_texture_env_dot3 was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_EXT_texture_integer was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_EXT_texture_integer was not found, but is available in driver version 2.1 ATI-1.6.37 
GL_EXT_texture_lod was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_EXT_texture_lod_bias was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_EXT_texture_lod_bias was not found, but is available in driver version 2.1 ATI-1.6.37 
GL_EXT_texture_object was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_EXT_texture_rectangle was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_EXT_texture_rectangle was not found, but is available in driver version 2.1 ATI-1.6.37 
GL_EXT_texture_shared_exponent was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_EXT_texture_shared_exponent was not found, but is available in driver version 2.1 ATI-1.6.37 
GL_EXT_texture_snorm was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_EXT_texture_sRGB was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_EXT_texture_sRGB was not found, but is available in driver version 2.1 ATI-1.6.37 
GL_EXT_texture_swizzle was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_EXT_timer_query was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_EXT_timer_query was not found, but is available in driver version 2.1 ATI-1.6.37 
GL_EXT_transform_feedback was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_EXT_transform_feedback was not found, but is available in driver version 2.1 ATI-1.6.37 
GL_EXT_vertex_array was not found, but is available in driver version 4.1.10428 Compatibility Profil 
GL_EXT_vertex_array_bgra was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_EXT_vertex_array_bgra was not found, but is available in driver version 2.1 ATI-1.6.37 
GL_EXT_vertex_attrib_64bit was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_IBM_rasterpos_clip was not found, but is available in driver version 2.1 ATI-1.6.37 
GL_IBM_texture_mirrored_repeat was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_KTX_buffer_region was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_NV_blend_square was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_NV_blend_square was not found, but is available in driver version 2.1 ATI-1.6.37 
GL_NV_conditional_render was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_NV_conditional_render was not found, but is available in driver version 2.1 ATI-1.6.37 
GL_NV_copy_depth_to_color was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_NV_depth_clamp was not found, but is available in driver version 2.1 ATI-1.6.37 
GL_NV_explicit_multisample was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_NV_float_buffer was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_NV_fog_distance was not found, but is available in driver version 2.1 ATI-1.6.37 
GL_NV_half_float was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_NV_light_max_exponent was not found, but is available in driver version 2.1 ATI-1.6.37 
GL_NV_primitive_restart was not found, but is available in driver version 4.1.10428 Compatibility Profil 
GL_NV_texgen_reflection was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_NV_texgen_reflection was not found, but is available in driver version 2.1 ATI-1.6.37 
GL_NV_texture_barrier was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_SGI_color_matrix was not found, but is available in driver version 2.1 ATI-1.6.37 
GL_SGIS_generate_mipmap was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_SGIS_generate_mipmap was not found, but is available in driver version 2.1 ATI-1.6.37 
GL_SGIS_texture_edge_clamp was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_SGIS_texture_edge_clamp was not found, but is available in driver version 2.1 ATI-1.6.37 
GL_SGIS_texture_lod was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_SGIS_texture_lod was not found, but is available in driver version 2.1 ATI-1.6.37 
GL_SUN_multi_draw_arrays was not found, but is available in driver version 3.0.10428 Core Profile Forward 
GL_WIN_swap_hint was not found, but is available in driver version 3.0.10428 Core Profile Forward 


    
  • edited April 2013
    I believe there's a way to ask GLFW (which is in charge of creating the OpenGL context) to use a Core one instead of a Compatibility one. I'll look into that tonight.
  • edited May 2013
    There's a way, but it can only be done when compiling GLFW when targeting the SDK 10.7 or above.

    I'm still on 10.6 (and on OpenGL 2.1 actually, so I was wrong), so I might just update the shader tutorial to use GLSL 1.20 instead. :)
  • edited September 2014
    Hardware: Macbook Pro, 2.6 GHz Intel Core i7, Intel Iris Pro + NVIDIA GeForce GT 750M, OS X 10.9.4

    I used to have the same shader issues with tutorial 12 as described earlier in this thread (bitwise ops fail/GLSL version). Now, after a recent repo update and rebuilding the orx lib, this seems to have been fixed by putting in some conditional GLSL 1.2 compatible code.

    This is nice if you really do have an old GPU, but the problem is that even though my machine should be more than capable of post 1.3 shaders, it is not recognized. Even if set the newly added ShaderVersion param in the Display config section to 130, I get a “not supported” error.

    As was also mentioned earlier, this is because OSX does not support a compatibility mode for OpenGL 3/4, so you can only choose either a OpenGL 2 or or a forward-compatible OpenGL 3.2 core profile context. In GLFW, if you don’t select the 3.2 core profile explicitly with glfwOpenWindowHint, it defaults to GL2.

    So I tried adding the following lines to orxDisplay_GLFW_SetVideoMode:

    glfwOpenWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE);
    glfwOpenWindowHint(GLFW_OPENGL_VERSION_MAJOR, 3);
    glfwOpenWindowHint(GLFW_OPENGL_VERSION_MINOR, 2);

    This worked fine in a separate GLFW sandbox project I have running, but in orx, I get an error somewhere in the subsequent code, resulting in a "Failed to init GLFW/OpenGL default video mode" message. Now of course, it was too optimistic to think that it would just work, and my OpenGL/GLFW fu is too weak to figure out everything that is going on in orxDisplay.

    iarwain, have you looked into initializing the core profile on mac since the last post?
  • edited September 2014
    Hi luffe_gaas,

    I've been looking into this tonight as I'm now on OS X 10.9.

    The first step was to compile GLFW with a more recent SDK as the previous binaries were made with 10.6 and it wouldn't have supported OpenGL Core 3.2 init. This has been pushed on the repository.

    Now there is a more deeper problem as you've noticed. It's not working because the GLFW display plugin is still using some old OpenGL features that have been removed from the 3.1+ Core profiles (matrix stack, client states, etc...). Things are much more comfortable on Windows/Linux were there's no such restriction.

    I'll be working on migrating it to support core profile in the coming days, but I will also need to support backward compatibility which always makes things a bit more tricky, especially with OS X in the mix.

    I'll be using the OpenGL ES display plugins (iOS/Android) as reference as they're not based on any of the old features still in use in the GLFW plugin, hopefully that will make the whole process less painful. :)
  • edited September 2014
    Awesome. It seems like OSX makes cross-platfom GL integration a bit of pain in the ass, so the effort is appreciated.
  • edited October 2014
    Sorry, this is taking much more time than foreseen, it's still a WIP but I'm not often enough on the Mac to make steady progress.
    I'm taking december off to visit family and I'll only have a macbook with me, hopefully I'll get to do that by then. :)
Sign In or Register to comment.