I find some bug of the es1.1 |
Post Reply
|
Page 12> |
| Author | |
favormm
Insider
Joined: 15 Oct 08 Online Status: Offline Posts: 13 |
Quote Reply
Topic: I find some bug of the es1.1Posted: 15 Oct 08 at 8:01am |
|
I have downloaded the SDK for PC Emulation Windows XP -OpenGL ES 1.1.
In the TrainingCourse folder, I use the third code --- 03_IntroducingPVRShell, I add a WM_LBUTTONDOWN message in the code, want to pop-up a common dialog of thes windows, and like following:
case WM_LBUTTONDOWN:
{ OPENFILENAME ofn; char szFile[255]; ZeroMemory(&ofn, sizeof(OPENFILENAME)); //ofn.Flags = OFN_ALLOWMULTISELECT | OFN_EXPLORER | OFN_FILEMUSTEXIST | OFN_PATHMUSTEXIST; ofn.Flags = OFN_SHOWHELP | OFN_OVERWRITEPROMPT; ofn.lpstrFile = szFile; ofn.lpstrFile[0] = '\0'; ofn.nMaxFile = sizeof(szFile); ofn.lpstrFileTitle = NULL; ofn.lpstrFilter = "All\0*.*\0Text\0*.txt\0Image\0*.bmp\0"; ofn.lStructSize = sizeof(OPENFILENAME); ofn.hwndOwner = hWnd; GetOpenFileName(&ofn); return 0; } the issue come out: the first I click the left of my mouse, my father window's graphics will disappear, It will not appear again until I close the pop-up dialog.
It only have the issue when I first click the mouse, the later all the things are ok.
I want to know if I do is ok? If not , please give me some suggestions.
|
|
![]() |
|
favormm
Insider
Joined: 15 Oct 08 Online Status: Offline Posts: 13 |
Quote Reply
Posted: 15 Oct 08 at 8:50am |
|
supplement:
In the same condition with OpenGL 1.5 on Windows, have no issue.
|
|
![]() |
|
carlos.sarria
IMG Staff Admin
Joined: 10 Mar 08 Online Status: Offline Posts: 89 |
Quote Reply
Posted: 15 Oct 08 at 11:04am |
|
Hello,
I have tested this and it works fine for me.
You should add your code in the PVRShellOS.cpp file. Do a searck for WM_LBUTTONDOWN. Once you have found where it is used in the WinProc callback function, just paste your code on it.
Regards.
Carlos.
|
|
|
Carlos Sarria - Developer Technology Manager
|
|
![]() |
|
favormm
Insider
Joined: 15 Oct 08 Online Status: Offline Posts: 13 |
Quote Reply
Posted: 15 Oct 08 at 2:22pm |
|
Ths, I done like you said, but it is the same result with my issue.When the first click mouse,I know the common dialog pop-up succeed, the 3D scene's color is white, and have nothing, in fact there is a yellow triangle in the middle.
I capture a picture, you can see it is white
![]() Then the second click mouse, all the things are ok, the triangle display,the color is ok.
As a contrast, I capture a picture .
![]() I want to know ,why the first is error?
|
|
![]() |
|
favormm
Insider
Joined: 15 Oct 08 Online Status: Offline Posts: 13 |
Quote Reply
Posted: 16 Oct 08 at 6:45am |
|
sorry for that , maybe you can't see the picture, so I give you the web address
picture 2:
|
|
![]() |
|
favormm
Insider
Joined: 15 Oct 08 Online Status: Offline Posts: 13 |
Quote Reply
Posted: 16 Oct 08 at 6:45am |
![]() |
|
carlos.sarria
IMG Staff Admin
Joined: 10 Mar 08 Online Status: Offline Posts: 89 |
Quote Reply
Posted: 16 Oct 08 at 10:10am |
|
Hello,
This problem only happens on WinXP or Vista with 'classic desktop'. This is due to these styles not keeping the content of the parent window in a buffer (which is done properly on the new Vista styles). I do not know why this works fine on your OpenGL application. There might be differences when you create your windows and manage the 'OpenFile' dialog. This is just a Windows issue and we do not think it is related to our emulation library. Best regards.
Carlos. |
|
|
Carlos Sarria - Developer Technology Manager
|
|
![]() |
|
favormm
Insider
Joined: 15 Oct 08 Online Status: Offline Posts: 13 |
Quote Reply
Posted: 16 Oct 08 at 10:36am |
|
hi,
Thank you answer,
In the OpenGL application, I use the wgl library, and have no error. the only difference between my OpenGL application and OpenGL ES application is that Opengl use the wgl and the ES use the egl, I don't think it is windows issue, It is only my opinion.
Regards
|
|
![]() |
|
carlos.sarria
IMG Staff Admin
Joined: 10 Mar 08 Online Status: Offline Posts: 89 |
Quote Reply
Posted: 16 Oct 08 at 10:55am |
|
Hello, Best regards. Carlos. |
|
|
Carlos Sarria - Developer Technology Manager
|
|
![]() |
|
favormm
Insider
Joined: 15 Oct 08 Online Status: Offline Posts: 13 |
Quote Reply
Posted: 16 Oct 08 at 11:01am |
|
This problem only happen when first pop-up the common dialog, the dialog that created by myself and create by the API of MessageBox() is ok, but the second pop-up the common dialog is ok. If the first pop-up dialog is a non-common dialog, then pop-up the common dialog, all the things are ok.
|
|
![]() |
|
Post Reply
|
Page 12> |
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
Disclaimer: This Forum is opened by Imagination Technologies to foster a dynamic dialogue with developers. The opinions expressed within this forum are not those of Imagination Technologies. Imagination Technologies also reserves the right to edit or withdraw any content on this forum that is deemed inappropriate by Imagination Technologies and to not be in the best interests of our developer community.










Topic Options



