Skip to content
Snippets Groups Projects
Commit f1c7e5d5 authored by Dmitry Kazakov's avatar Dmitry Kazakov
Browse files

Added a workaround for OpenGL bended lines

There are two reasons why the lines might become bended:
1) swapBuffers() call waits for the display VSync for about 6 ms, all the
   events seem to be dropped during this time.
2) When painting very *huge* circles with very small brush
   (circles ~ 3000px in diameter, brush ~5px) some another factor
   appears. I cannot tell for sure, but this is, probably, texture loading.

This patch fixes only the first (!) reason of line bending.
First, it asks Qt to use single buffered contexts. Then, if a single
buffered context is not available, it asks openGL to disable VSync.

CCBUG:300339
parent 1482ee90
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment