Page MenuHome

OpenGL: updated clip_utils.c to new immediate mode
ClosedPublic

Authored by Darwin Yip (darwin) on Dec 2 2016, 3:59 AM.

Details

Summary

Updated clip_utils.c

T49043

Diff Detail

Repository
rB Blender

Event Timeline

Darwin Yip (darwin) retitled this revision from to OpenGL: updated clip_utils.c to new immediate mode.
Darwin Yip (darwin) updated this object.
Darwin Yip (darwin) set the repository for this revision to rB Blender.
source/blender/editors/space_clip/clip_utils.c
254

This line is black instead of green. Pull these lines down so they affect the bound shader:

	/* Draw a light green line to indicate current frame */
	UI_ThemeColor(TH_CFRAME);

Just change UI_ThemeColor to immUniformThemeColor.

295

fdrawline below can also be updated.

immBegin(GL_LINES, 4) ...

Keep GPU_SHADER_2D_UNIFORM_COLOR bound, just update the color with immUniformThemeColorShade.

Also noticed these lines need a glLineWidth(1.0f).

Addressed color line issue and updated deprecated functions to use imm.

Mike Erwin (merwin) edited edge metadata.

Works fine now! See final commit for some small changes I made.

This revision is now accepted and ready to land.Feb 11 2017, 6:42 AM

Committed to blender2.8