[PATCH] make TOpenGLControl renderable by a thread
Original Reporter info from Mantis: PascalR @PascalRiekenberg
-
Reporter name: Pascal Riekenberg
Original Reporter info from Mantis: PascalR @PascalRiekenberg
- Reporter name: Pascal Riekenberg
Description:
Currently TOpenGLControl calls MakeCurrent when invalidated or resized.
This makes it impossible to use a thread to render into the context.
The attached patch prevents calls to MakeCurrent when there is no need to:
a) AutoResizeView not set
and b) no OnPaint handler
Mantis conversion info:
- Mantis ID: 32116
- OS: Windows
- OS Build: 10 x64
- Platform: i386
- Version: 1.9 (SVN)
- Fixed in revision: r55559 (#712e0635)
- Monitored by: » AntonK (Anton Kavalenka)