On 19/07/07, Stefan Dösinger <[EMAIL PROTECTED]> wrote:
What I meant was that selecting the gl codepath or the no gl codepath. This is
preferably done by calling a COM method on the right vtable(d3d surface / non
d3d surface). My first patch(never sent here) checked the vtable address to
find out if the surface is d3d or gdi, this was ugly. Now this patch checks a
device internal status flag, which is better because the device can decide on
which path to take based on it's own properties, rather than depending on the
surface type.

I think the flag is fine. Executing that part of the code or not
doesn't really depend on the surface type. GDI surfaces would never be
attached to an FBO anyway, it's the GL_LIMITS(buffers) that would
cause problems here. Making sure the limit is 0 if GL isn't available
would probably work as well.


Reply via email to