more tinybuffer tweaks

This commit is contained in:
David Rose 2008-08-09 04:00:41 +00:00
parent fbc2b2b213
commit 58c54ef085
2 changed files with 8 additions and 4 deletions

View File

@ -239,8 +239,7 @@ make_output(const string &name,
// Second thing to try: a TinyGraphicsBuffer
if (retry == 1) {
if ((!support_render_texture)||
((flags&BF_require_parasite)!=0)||
if (((flags&BF_require_parasite)!=0)||
((flags&BF_require_window)!=0)) {
return NULL;
}

View File

@ -208,6 +208,9 @@ make_output(const string &name,
// First thing to try: a TinyXGraphicsWindow
// We check _is_valid only in this case. The pipe will be invalid
// if it can't contact the X server, but that shouldn't prevent the
// creation of an offscreen buffer.
if (retry == 0 && _is_valid) {
if (((flags&BF_require_parasite)!=0)||
((flags&BF_refuse_window)!=0)||
@ -223,9 +226,11 @@ make_output(const string &name,
}
// Second thing to try: a TinyGraphicsBuffer
// No need to check _is_valid here. We can create an offscreen
// buffer even if the pipe is not technically valid.
if (retry == 1) {
if ((!support_render_texture)||
((flags&BF_require_parasite)!=0)||
if (((flags&BF_require_parasite)!=0)||
((flags&BF_require_window)!=0)) {
return NULL;
}