glgsg: fix get_host() of GL FBO. Fixes LP 1672560 shadow bug

This commit is contained in:
rdb 2017-04-09 22:14:20 +02:00
parent a175ad6a82
commit fa1b656961
2 changed files with 12 additions and 0 deletions

View File

@ -1501,6 +1501,16 @@ open_buffer() {
return true; return true;
} }
/**
* This is normally called only from within make_texture_buffer(). When
* called on a ParasiteBuffer, it returns the host of that buffer; but when
* called on some other buffer, it returns the buffer itself.
*/
GraphicsOutput *CLP(GraphicsBuffer)::
get_host() {
return _host;
}
/** /**
* Closes the buffer right now. Called from the window thread. * Closes the buffer right now. Called from the window thread.
*/ */

View File

@ -77,6 +77,8 @@ public:
void unregister_shared_depth_buffer(GraphicsOutput *graphics_output); void unregister_shared_depth_buffer(GraphicsOutput *graphics_output);
protected: protected:
virtual GraphicsOutput *get_host();
virtual void close_buffer(); virtual void close_buffer();
virtual bool open_buffer(); virtual bool open_buffer();