Page MenuHome

Deprecated OpenGL Migration, the home stretch!
Closed, ArchivedPublic

Description

This is add-hoc task to help manage

  • Catch errors/deprecated calls at runtime, fix code. @Mike Erwin (merwin)
  • Update or remove all uses of GPU_basic_shader (contains deprecated use of: gl_Vertex, gl_Normal, gl_ClipVertex). <insert name here>

    (currently empty)

Ignore:

  • Game Engine (see UPBGE)

Done:


Notes:

  • To build with core profile:
    • WITH_GL_PROFILE_CORE=ON
    • WITH_GL_PROFILE_COMPAT=OFF
    • WITH_LEGACY_OPENGL=OFF
    • WITH_GAMEENGINE=OFF (not yet supported)
    • WITH_PLAYER=OFF (needs BGE)
  • Draw Manager Tasks have been moved to: T51202

Event Timeline

Campbell Barton (campbellbarton) triaged this task as Normal priority.
Campbell Barton (campbellbarton) changed Type from Bug to To Do.
Campbell Barton (campbellbarton) renamed this task from Deprecated OpenGL Migration, the final stretch! to Deprecated OpenGL Migration, the home stretch!.Apr 10 2017, 10:55 AM
Campbell Barton (campbellbarton) updated the task description. (Show Details)

Note on "icon_draw_rect: icons are" (assert on interface_icons.c when building WITH_GL_CORE). The problem seems to be with the window matrices. For example block->aspect should be 1.0, but instead it is 0.001. I believe the same happens for other values of the block->struct.

Sample file:

@Mike Erwin (merwin) about the runtime problem with OSX. I had to update the extern glew to 2.0. Blender has a build option to use either the system glew or Blender's. So make sure you use Blender's glew for your tests!

@Mike Erwin (merwin) about the runtime problem with OSX. I had to update the extern glew to 2.0. Blender has a build option to use either the system glew or Blender's. So make sure you use Blender's glew for your tests!

Turned out the problem was earlier in context setup. It wasn't even reaching glewInit! Once that was fixed I had no problem with GLEW on Mac.

Brecht Van Lommel (brecht) claimed this task.

Pretty much everything appears to have been converted, any more issue we discover can be handled in their own tasks.