In the API update the diffuse effect got renamed to image.

master
Ziemas 2014-02-15 00:12:06 +01:00 committed by fryshorts
parent 42bc5eddbb
commit e67d7607e4
2 changed files with 5 additions and 5 deletions

View File

@ -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();
@ -116,4 +116,4 @@ void xcursor_render(xcursor_t *data) {
gs_enable_blending(False);
gs_matrix_pop();
}
}

View File

@ -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);