zturtleman / mm3d

Maverick Model 3D is a 3D model editor and animator for games.
https://clover.moe/mm3d
GNU General Public License v2.0
115 stars 23 forks source link

GL_COLOR_LOGIC_OP is not disable. I don't know how this even works honestly. #84

Open m-7761 opened 4 years ago

m-7761 commented 4 years ago

https://github.com/zturtleman/mm3d/blob/8c6c6ea29e2ad423d35ed1c2147f09c68f49d94b/src/depui/texwidget.cc#L1904

glEnable/Disable is mismatched.

m-7761 commented 4 years ago

I realized glLogicOp( GL_COPY ); is suppressing the bug. I think its semantics are equivalent to disabling the feature. So I looked up GL_LOGIC_OP and... it is a back-compat constant for GL_INDEX_LOGIC_OP.

(There's a lot of junk code like GL_COPY and methods that disable logic-op, etc. out of the blue.)