aargh Posted April 10, 2020 Share Posted April 10, 2020 (edited) Hi What changes in the Custom App class occurred between version 2.11 beta and version 2.11? The application window does not appear in version 2.11. For CustomApp, the AppSDL code from version 2.10 is used. What needs to be changed? This is not clear from the documentation. Thanks for the help. We use CustomApp to access the SDL function SDL_POLL. Is there another way to access the event loop? Update, after debugging we found this error: OpenGL support is either not configured in SDL or not available in current SDL video driver (windows) or platform: The error is thrown in the CreateWindow function. The problem is that we only use directx ;-) And up to now, it worked smoothly. No code has been changed in this section between 2.11 beta and 2.11 (on our side) thx Aargh Edited April 10, 2020 by aargh Link to comment
silent Posted April 11, 2020 Share Posted April 11, 2020 aargh Could you please send us a minimal test scene for test? As far as I remember you mentioned that there is no issues with custom SDL integration in beta release. We changed almost nothing to that aspect since beta, so it would be interesting to see what is going on here. Thanks! How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN Link to comment
silent Posted April 11, 2020 Share Posted April 11, 2020 For a quick test you can try to use <SDK>/extern/include/SDL2 headers instead of your current SDL2 headers (just to verify if issue is gone). Attached in zip in case if they are missing in your installation. SDL2.zip How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN Link to comment
aargh Posted April 11, 2020 Author Share Posted April 11, 2020 In the uploaded archive SDLtestcase.ZIP I am sending minimal testcase (uploaded using FTP). Projects do not contain any of our code. Only missing SDLmain library unigine_project_210 is created in the SDK browser. unigine_project_211_beta is created as an upgrade from version 210 using the SDK browser. unigine_project_211 is created as an upgrade from version 210 using the SDK browser. In versions 211 *, identical modifications are made to the AppSDL files. version 211_beta works, version 211 does not work. Upload does not contain binaries, because of archive size. best regards aargh. Link to comment
silent Posted April 12, 2020 Share Posted April 12, 2020 Have you tried to replace includes - does it changes anything? How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN Link to comment
aargh Posted April 12, 2020 Author Share Posted April 12, 2020 Hi SIlent Replacing the SDL includes has no effect on the error. Unfortunately. (Of course after recompiling ;-) ) Aargh Link to comment
silent Posted April 12, 2020 Share Posted April 12, 2020 Please, check fixed AppSDL.cpp: AppSDL.cpp If this doesn't help you may require to replace a .lib file as well (in attachment). SDL2main.lib How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN Link to comment
aargh Posted April 12, 2020 Author Share Posted April 12, 2020 Hi Silent Unfortunately, even the new library did not help. I am testing on a project created by SDK Browser. that I sent to you Aargh Link to comment
aargh Posted April 12, 2020 Author Share Posted April 12, 2020 OMG int sdl_flags = 0; is the Key ;-). This is new in last version. Previously, there was no problem. Please mark as Solved. Thank you very much for the perfect support. Aargh Link to comment
silent Posted April 13, 2020 Share Posted April 13, 2020 Oops, forgot to mention that you need to replace int sdl_flags = SDL_WINDOW_OPENGL; with int sdl_flags = 0; 1 How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN Link to comment
Recommended Posts