View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0014085 | VTK | (No Category) | public | 2013-05-23 11:21 | 2013-12-16 15:46 | ||||
Reporter | Anton Poletaev | ||||||||
Assigned To | |||||||||
Priority | normal | Severity | minor | Reproducibility | have not tried | ||||
Status | closed | Resolution | fixed | ||||||
Platform | OS | OS Version | |||||||
Product Version | 5.10.1 | ||||||||
Target Version | Fixed in Version | 6.1.0 | |||||||
Summary | 0014085: OpenGL multisampling feature is not initialized properly for QVTK widget | ||||||||
Description | Hardware features for vtkWin32OpenGLRenderWindow are configured by "wglChoosePixelFormatARB". For this purpose a temporary window is silently created by SetupPixelFormat method, and a dummy OpenGL context is initialized. However, this method does not work properly for render window created for use with QVTKWidget. The problem is that the following snippet of code does not create temporary window as it is expected: ============================================================================== void vtkWin32OpenGLRenderWindow::SetupPixelFormat(HDC hDC, DWORD dwFlags, int debug, int bpp, int zbpp) { // Create a dummy window, needed for calling wglGetProcAddress. #ifdef UNICODE HWND tempId = CreateWindow(L"vtkOpenGL", 0, 0, 0, 0, 1, 1, 0, 0, this->ApplicationInstance, 0); #else HWND tempId = CreateWindow("vtkOpenGL", 0, 0, 0, 0, 1, 1, 0, 0, this->ApplicationInstance, 0); #endif ============================================================================= The reason is that the "vtkOpenGL" window class is not registered, and as a result -- the returned "tempId" identifier is NULL. Please have a look at the attached patch, that solves the problem. | ||||||||
Tags | No tags attached. | ||||||||
Project | Kitware | ||||||||
Type | incorrect functionality | ||||||||
Attached Files | patch.diff [^] (4,144 bytes) 2013-05-23 11:21 [Show Content] | ||||||||
Relationships | |
Relationships |
Notes | |
(0030838) Frederic TINGAUD (reporter) 2013-05-23 12:25 |
Hi, This bug was already corrected: http://review.source.kitware.com/#/c/7931/ [^] |
(0030840) Anton Poletaev (reporter) 2013-05-23 13:16 edited on: 2013-05-23 17:35 |
Thanks for info, I suggest this issue is to be processed by setting duplicate relation and closing the bug when solution in vtk release (notice that the problem is found on vtk-5.10.1). |
(0031954) Dave DeMarle (administrator) 2013-12-16 15:46 |
Fixed by: http://review.source.kitware.com/#/c/7931/ [^] |
Notes |
Issue History | |||
Date Modified | Username | Field | Change |
2013-05-23 11:21 | Anton Poletaev | New Issue | |
2013-05-23 11:21 | Anton Poletaev | File Added: patch.diff | |
2013-05-23 12:25 | Frederic TINGAUD | Note Added: 0030838 | |
2013-05-23 13:16 | Anton Poletaev | Note Added: 0030840 | |
2013-05-23 17:35 | Anton Poletaev | Note Edited: 0030840 | |
2013-12-16 15:46 | Dave DeMarle | Note Added: 0031954 | |
2013-12-16 15:46 | Dave DeMarle | Status | backlog => closed |
2013-12-16 15:46 | Dave DeMarle | Resolution | open => fixed |
2013-12-16 15:46 | Dave DeMarle | Fixed in Version | => 6.1.0 |
Issue History |
Copyright © 2000 - 2018 MantisBT Team |