Skip to content
Commit abe5d845 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 828b4cbb
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment