diff options
| author | Alexander Volkov <a.volkov@rusbitech.ru> | 2015-05-14 12:49:31 +0300 |
|---|---|---|
| committer | Alexander Volkov <a.volkov@rusbitech.ru> | 2015-05-14 16:33:48 +0000 |
| commit | 7d3f353a5bd573dc0e72f7f55c70212a6b3837fa (patch) | |
| tree | a7af6c7322a346f049f731cfb50ebd3908c0ce5f /examples/opengl/legacy/framebufferobject2/framebufferobject2.pro | |
| parent | 7d1ec1ae9e263df1a655e13f8feea7b5a5c7d9ed (diff) | |
xcb: Fix FP1616 to double conversion
We should divide the fractional part of the FP1616 value by 0x10000
instead of 0xFFFF, otherwise 1.FFFF will be converted to 2.0.
And right-shifting the integer part by 16 is equal to dividing it
by 0x10000. So just divide the whole FP1616 value by 0x10000.
Change-Id: Ia89a274b81be9cf502e1f311f696a610a7f37d7f
Task-number: QTBUG-45378
Reviewed-by: Laszlo Agocs <laszlo.agocs@theqtcompany.com>
Diffstat (limited to 'examples/opengl/legacy/framebufferobject2/framebufferobject2.pro')
0 files changed, 0 insertions, 0 deletions
