Remove 'effect' param from effect param funcs
Similar to the shader functions, the effect parameter functions take the effect as a parameter. However, the effect parameter is pretty pointless, because the effect parameter.. parameter stores the effect pointer interally.
This commit is contained in:
parent
f025cd6f87
commit
dbb9124bf6
11 changed files with 59 additions and 92 deletions
|
|
@ -718,7 +718,7 @@ void OBSBasicPreview::DrawSceneEditing()
|
|||
|
||||
vec4 color;
|
||||
vec4_set(&color, 1.0f, 0.0f, 0.0f, 1.0f);
|
||||
effect_setvec4(solid, effect_getparambyname(solid, "color"), &color);
|
||||
effect_setvec4(effect_getparambyname(solid, "color"), &color);
|
||||
|
||||
technique_begin(tech);
|
||||
technique_beginpass(tech, 0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue