[Bug 11167] New: Wrong usage of GL_GENERATE_MIPMAP_HINT_SGIS
http://bugs.winehq.org/show_bug.cgi?id=11167 Summary: Wrong usage of GL_GENERATE_MIPMAP_HINT_SGIS Product: Wine Version: 0.9.52. Platform: Other OS/Version: other Status: UNCONFIRMED Severity: trivial Priority: P2 Component: directx-d3d AssignedTo: wine-bugs(a)winehq.org ReportedBy: tdb(a)tdb.fi fixme:d3d_texture:IWineD3DBaseTextureImpl_SetAutoGenFilterType
>>>>>>>>>>> GL_INVALID_ENUM (0x500) from glTexParameteri(textureDimensions, GL_GENERATE_MIPMAP_HINT_SGIS, GL_NICEST) @ ../../../dlls/wined3d/basetexture.c / 193
The SGIS_generate_mipmap specification says: Accepted by the <target> parameter of Hint, and by the <pname> parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev: GENERATE_MIPMAP_HINT_SGIS 0x8192 So the function call should be glHint(GENERATE_MIPMAP_HINT_SGIS, GL_NICEST). Note however that this is a global state, not per-texture. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=11167 Jörg Höhle <hoehle(a)users.sourceforge.net> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |hoehle(a)users.sourceforge.net --- Comment #1 from Jörg Höhle <hoehle(a)users.sourceforge.net> 2008-04-10 15:26:22 --- I found a reference to the following code, but I'm no GL expert. glTexParameteri(GL_TEXTURE_2D, GL_GENERATE_MIPMAP_SGIS, GL_TRUE); glHint(GL_GENERATE_MIPMAP_HINT_SGIS, GL_NICEST); The adventure game Luka from the German police http://www.luka.polizei-beratung.de/ also produces this message, preceeded with warn:d3d_texture:IWineD3DBaseTextureImpl_SetAutoGenFilterType Unexpected filter type 3, setting to GL_NICEST and later hangs. A real bug I just noticed are the missing break; in the switch in that function. I'll also post it to wine-patches. Regards, -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=11167 Stefan Dösinger <stefandoesinger(a)gmx.at> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |stefandoesinger(a)gmx.at --- Comment #2 from Stefan Dösinger <stefandoesinger(a)gmx.at> 2008-04-14 12:47:11 --- Hmm, I've no idea where I have the glTexParameteri from. Maybe a wrong extension description... If we can't set it globally anyway it might be worth ignoring this method at all, or we just check if the app ever sets two contradicting filter types... -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=11167 --- Comment #3 from Austin English <austinenglish(a)gmail.com> 2008-10-23 15:17:49 --- Is this still an issue in current (1.1.6 or newer) wine? -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=11167 --- Comment #4 from Stefan Dösinger <stefandoesinger(a)gmx.at> 2008-10-23 17:16:32 --- Yes, it looks like this in the code -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=11167 --- Comment #5 from Austin English <austinenglish(a)gmail.com> 2009-04-26 20:40:58 --- Is this still an issue in current (1.1.20 or newer) wine? -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=11167 --- Comment #6 from Stefan Dösinger <stefandoesinger(a)gmx.at> 2009-04-27 07:43:56 --- I didn't fix it yet, so I think it is still an issue -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=11167 hpestilence <hpestilence(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 --- Comment #7 from hpestilence <hpestilence(a)gmail.com> 2009-05-25 19:33:37 --- *** This bug has been confirmed by popular vote. *** -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=11167 N3o <diafoirus(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |diafoirus(a)gmail.com --- Comment #8 from N3o <diafoirus(a)gmail.com> 2009-08-08 14:04:01 --- This bug still occur in current wine version (1.1.27)? if not, please close it.... -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=11167 --- Comment #9 from Mikko Rasa <tdb(a)tdb.fi> 2009-08-13 13:29:11 --- Yes, the incorrect usage still appears in the source. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=11167 --- Comment #10 from Jörg Höhle <hoehle(a)users.sourceforge.net> 2010-01-13 06:23:46 --- This incorrect GL call causes Ankh (the first from the trilogy) to throw a lot of the following exceptions to the console in wine-1.1.36 and earlier. Luckily, they are not fatal. fixme:d3d_texture:basetexture_set_autogen_filter_type
>>>>>>>>>>> GL_INVALID_ENUM (0x500) from glTexParameteri(textureDimensions, GL_GENERATE_MIPMAP_HINT_SGIS, GL_NICEST) @ basetexture.c / 183 Texture: home_hanging_basket_lm.tga: Loading 1 faces(PF_A8R8G8B8,128x128x1) with 0 generated mipmaps from Image. Internal format is PF_A8R8G8B8,128x128x1. Error loading texture plant_grass_warm_green.tga. Texture layer will be blank. Loading the texture failed with the following exception: An exception has been thrown!
Details: ---------------- Error #: -2005530516 Function: D3D9Texture::_createNormTex Description: Could not set best autogen filter type. File: \#work\ExternalProjects\ogrenew\RenderSystems\Direct3D9\src\OgreD3D9Texture.cpp Line: 494 Stack unwinding: <<beginning of stack>> Mesh: Loading xyz.mesh With my (incorrect) SetAutoGenFilterType patch from July 2009, these go away. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=11167 --- Comment #11 from GyB <gyebro69(a)gmail.com> 2010-09-18 04:41:33 CDT --- Created an attachment (id=30836) --> (http://bugs.winehq.org/attachment.cgi?id=30836) terminal output (from the game Jack Keane) Those messages in the terminal are still present in the current git: wine-1.3.2-284-g190c351 I get those lines at least in the following games: Jack Keane, Ankh 2 and Ankh 3. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=11167 --- Comment #12 from Jörg Höhle <hoehle(a)users.sourceforge.net> 2011-05-05 10:26:12 CDT --- http://www.g-truc.net/post-0256.html OpenGL tip: Generate mipmaps recommends using glGenerateMipmap, however that is only available with GL_EXT_framebuffer_object http://www.opengl.org/discussion_boards/ubbthreads.php?ubb=showflat&Number=2... instead mentions glGenerateMipmapEXT -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=11167 joaopa <jeremielapuree(a)yahoo.fr> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jeremielapuree(a)yahoo.fr --- Comment #13 from joaopa <jeremielapuree(a)yahoo.fr> 2011-10-16 16:17:41 CDT --- still a bug in current wine? -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=11167 Stefan Dösinger <stefan(a)codeweavers.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |f6e4f4a1221f98dd07a6bda98ed | |f433913d35597 Status|NEW |RESOLVED CC| |stefan(a)codeweavers.com Resolution| |FIXED --- Comment #14 from Stefan Dösinger <stefan(a)codeweavers.com> 2011-10-16 16:43:40 CDT --- f6e4f4a1221f98dd07a6bda98edf433913d35597 removed the bad calls and replaced them with FIXMEs. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=11167 Alexandre Julliard <julliard(a)winehq.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED --- Comment #15 from Alexandre Julliard <julliard(a)winehq.org> 2011-10-21 13:50:40 CDT --- Closing bugs fixed in 1.3.31. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
participants (1)
-
wine-bugs@winehq.org