R
RenderedWorld
Guest
I have been using the same surface system over the past couple months. As recently as two or so days ago, my project hasn't been drawing the surface to the screen as it did before.
Here is the relevant chunk of the surface code:
So now, as I'm going through trying to debug, the console has started printing this message out every step:
"Trying to set texture that is also bound as depth buffer - bailing..."
I can only assume this is associated with the surface that is supposed to be drawing. I have never seen this error before. Does anyone have a clue as to why my surface isn't drawing and if this message is connected to it? I have tried many different things to try to get it to work and I'm out of ideas.
Any insight into this problem is appreciated.
Here is the relevant chunk of the surface code:
Code:
if(surface_exists(global.light)) {
surface_set_target(global.light);
draw_clear(c_black);
gpu_set_blendmode(bm_src_color);
//Draws a lantern-light sprite
...
gpu_set_blendmode(bm_normal);
surface_reset_target();
draw_surface_ext(global.light,0,0,1,1,0,c_white,global.light_lvl); // global.light_lvl sets the alpha to darken the environment
...
}
"Trying to set texture that is also bound as depth buffer - bailing..."
I can only assume this is associated with the surface that is supposed to be drawing. I have never seen this error before. Does anyone have a clue as to why my surface isn't drawing and if this message is connected to it? I have tried many different things to try to get it to work and I'm out of ideas.
Any insight into this problem is appreciated.
Last edited by a moderator: