Page MenuHome

blender 2.8: OpenGL immediate mode: action_draw
ClosedPublic

Authored by Darwin Yip (darwin) on Nov 15 2016, 1:54 AM.

Diff Detail

Repository
rB Blender

Event Timeline

Darwin Yip (darwin) retitled this revision from to blender 2.8: OpenGL immediate mode: action_draw.
Darwin Yip (darwin) updated this object.
Darwin Yip (darwin) set the repository for this revision to rB Blender.

Welcome!

I can see a few problems. Gawain (new drawing API) will catch lots of these in debug builds:

make lite debug (Mac or Linux)
or
make 2015 lite debug (Windows + Visual Studio 2015)

Then run and it will tell you where the problem is.

immAttrib4ub can only be called between immBegin & immEnd for example

Darwin Yip (darwin) edited edge metadata.

Use immUniform rather than immAttrib for calls outside of immBegin and immEnd. Also caught some calls that were missed earlier.

Missed the bindings.

This is looking good. Are you done or is there more coming?

Done for this file. Please let me know if any improvements can be done or if I missed anything.

source/blender/editors/space_action/action_draw.c
243–252

These 4 lines have an extra space after the ;

Not sure if it was there before your change. Either way this is a good opportunity to fix it :)

Removed trailing spaces.

Mike Erwin (merwin) edited edge metadata.
This revision is now accepted and ready to land.Nov 15 2016, 5:04 AM

Landed in blender2.8. Thanks!