mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-24 23:31:36 +08:00
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:
@@ -438,7 +438,7 @@ void XCompcapMain::render(effect_t effect)
|
||||
return;
|
||||
|
||||
eparam_t image = effect_getparambyname(effect, "image");
|
||||
effect_settexture(effect, image, p->tex);
|
||||
effect_settexture(image, p->tex);
|
||||
|
||||
gs_enable_blending(false);
|
||||
gs_draw_sprite(p->tex, 0, 0, 0);
|
||||
|
||||
@@ -96,7 +96,7 @@ void xcursor_render(xcursor_t *data) {
|
||||
effect_t effect = gs_geteffect();
|
||||
eparam_t image = effect_getparambyname(effect, "image");
|
||||
|
||||
effect_settexture(effect, image, data->tex);
|
||||
effect_settexture(image, data->tex);
|
||||
|
||||
gs_matrix_push();
|
||||
|
||||
|
||||
@@ -268,7 +268,7 @@ static void xshm_video_render(void *vptr, effect_t effect)
|
||||
return;
|
||||
|
||||
eparam_t image = effect_getparambyname(effect, "image");
|
||||
effect_settexture(effect, image, data->texture);
|
||||
effect_settexture(image, data->texture);
|
||||
|
||||
gs_enable_blending(false);
|
||||
gs_draw_sprite(data->texture, 0, 0, 0);
|
||||
|
||||
@@ -182,7 +182,7 @@ static void draw_texture(struct dc_capture *capture, int id, effect_t effect)
|
||||
eparam_t image = effect_getparambyname(effect, "image");
|
||||
size_t passes;
|
||||
|
||||
effect_settexture(effect, image, texture);
|
||||
effect_settexture(image, texture);
|
||||
|
||||
passes = technique_begin(tech);
|
||||
for (size_t i = 0; i < passes; i++) {
|
||||
|
||||
Reference in New Issue
Block a user