corrupted viewports in win32 gui apps

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
Remdul
Level 1
Level 1
Posts: 9
Joined: Thu Nov 08, 2018 11:15 am

corrupted viewports in win32 gui apps

Post by Remdul »

I'm trying to run OpenGL/DirectX GUI applications on Wine 3.0, however they all display random memory in their 3D viewports (i.e. parts of desktop and other programs, aka garbage). All applications function perfectly fine otherwise (after the usual tinkering with winetricks).

I've tried:
* Battlefield 2 (32-bit on 32-bit prefix) --> DX9, both windowed & fullscreen runs properly
* my own GL test app (32-bit in 32-bit prefix, OpenGL 2.0) --> broken viewport, glReadPixels output OK
* 3dsmax 9 (32-bit on 32-bit prefix) --> GL & DX broken viewports
* 3dsmax 2009 (32-bit on 32-bit prefix) --> GL & DX broken viewports
* 3dsmax 2016 (64-bit on 64-bit prefix) --> GL & DX broken viewports

Wine prints no issues to terminal. Experiments with my OpenGL test application proves it does properly render stuff, glReadPixels dumps show all is as it should be. Wine just fails to blit it's FBO content to the window/widget/control. Note that 'Battlefield 2' does run fine, but it's framebuffer covers the full content of the application window in windowed mode. Things seem to go wrong when rendering to specific controls/widgets.

I've been using Autodesk 3DSMAX on Wine v2.x for years (which runs exceptionally well, far more stable than on Windows), with full hardware support in OpenGL mode before Dx9 was fully supported in Wine.
Unfortunately the machine on which I ran that died, I'm trying to get the same software running again on a fresh new machine. So it's hard to tell if there's been a regression in Wine or it's the new hardware/OS/Wine.

Hardware/OS:
* wine --version: wine-3.0 (Ubuntu 3.0-1ubuntu1)
* Linux Mint 19 Cinnamon (v3.8.9) 64-bit
* Kernel: 4.15.0-36-generic
* CPU: AMD Ryzen 5 1600 Six-Core Processor × 6
* GPU: NVIDIA Corporation GP106 [GeForce GTX 1060 6GB]
* NV driver version: v390.77
* NV X Server @ all default settings
* 8 GB RAM
* 2x HDMI monitors @ 1920x1080 (also tested all with only one monitor)

I do have fully functioning OpenGL support on this system, my other C++ projects (one is a fully featured game engine), so no hardware/driver issues.
I'm a C++ graphics programmer, so I know a thing or two. I would just like some pointers on how to properly diagnose this issue, before I try a different Wine version or post a bug/ticket.
I haven't been able to find anything similar reported on Google or the Wine bugtracker.
I've tried just about all winetricks & winecfg settings, but nothing would solve this issue.

What I'd like to know is:
* are there specific settings combinations I should try (winetricks)?
* any known nVidia driver + Wine issues I missed?
* could it be a Mint/Cinnamon issue?
* any other suggestions or hints?

Thanks in advance!
User avatar
dimesio
Moderator
Moderator
Posts: 13202
Joined: Tue Mar 25, 2008 10:30 pm

Re: corrupted viewports in win32 gui apps

Post by dimesio »

I would just like some pointers on how to properly diagnose this issue, before I try a different Wine version or post a bug/ticket.
Testing the latest development and/or staging release is the first thing you should do, and you will need to do that before filing a bug anyway. There is no point in tinkering with old Wine versions.
Locked