Windows 7 - 32/64.
Я создал LCL-приложение и с помощью dglOpenGL.pas создал контекст на панели формы.
Приложение выводит треугольник на панель (контекст OpenGL).
При запуске приложения, панель очищается, но треугольник не выводится!!! Все события для вывода треугольника прописаны заранее. Буфер VAO уже заполнен и готов к выводу. Но приложение LCL не выводит данные из буфера (помним, код срабатывает, панель очищается).
Если на форму бросить button (я указывал в buttonclick FormPaint), то даже нажимать на кнопку не надо, в течении секунды треугольник будет выведен.
На Delphi 7 работает нормально всё. И сразу.
Приложение прикладываю.
Gogle translate:
I created an LCL application and using dglOpenGL.pas created a context on the form panel.
The application draws a triangle to the panel (OpenGL context).
When the application starts, the panel is cleared, but the triangle is not displayed!!! All events for the output of the triangle are written in advance. The VAO buffer is already full and ready for output. But the LCL application does not output data from the buffer (remember, the code works, the panel is cleared).
If you throw button on the form (I indicated in buttonclick FormPaint), then you don’t even need to click on the button, within a second the triangle will be displayed.
Everything works fine on Delphi 7. And right away.
I am attaching the application.