Browse code

Workaround for some graphics drivers: disable partial updates for now (using partial updates showed flickering, supposedly from frames from double buffering)

Dario Rodriguez authored on 18/04/2021 18:50:39
Showing 1 changed files
... ...
@@ -223,6 +223,13 @@ fprintf(stderr,"QUESTION INIT: %s: %s\n",re->question->title,re->question->body)
223 223
                                 }
224 224
                         }
225 225
                 }
226
+                /* workaround for some nvidia linux drivers, that show old data on partial updates */
227
+                if(re->headerdirty || re->contentsdirty || re->ui->rendererdirty) {
228
+                        re->headerdirty=1;
229
+                        re->contentsdirty=1;
230
+                        re->ui->rendererdirty=1;
231
+                }
232
+                /* end of fix */
226 233
                 if(re->headerdirty) {
227 234
                         if(re->command==NULL) {
228 235
 #if 0