In the API update the diffuse effect got renamed to image.
parent
42bc5eddbb
commit
e67d7607e4
|
@ -96,9 +96,9 @@ void xcursor_tick(xcursor_t *data) {
|
|||
void xcursor_render(xcursor_t *data) {
|
||||
// TODO: why do i need effects ?
|
||||
effect_t effect = gs_geteffect();
|
||||
eparam_t diffuse = effect_getparambyname(effect, "diffuse");
|
||||
eparam_t image = effect_getparambyname(effect, "image");
|
||||
|
||||
effect_settexture(effect, diffuse, data->tex);
|
||||
effect_settexture(effect, image, data->tex);
|
||||
|
||||
gs_matrix_push();
|
||||
|
||||
|
|
|
@ -174,8 +174,8 @@ static void xshm_input_video_render(void *vptr, effect_t effect)
|
|||
{
|
||||
XSHM_DATA(vptr);
|
||||
|
||||
eparam_t diffuse = effect_getparambyname(effect, "diffuse");
|
||||
effect_settexture(effect, diffuse, data->texture);
|
||||
eparam_t image = effect_getparambyname(effect, "image");
|
||||
effect_settexture(effect, image, data->texture);
|
||||
|
||||
gs_draw_sprite(data->texture, 0, 0, 0);
|
||||
|
||||
|
|
Loading…
Reference in New Issue