tyrells / dosbox-svn-shaders

GLSL Shaders for DOSBox SVN r4319 and later
65 stars 5 forks source link

`crt-lottes.tweaked` breaks with NPOT texture #9

Closed GranMinigun closed 2 years ago

GranMinigun commented 2 years ago

Back in October, DOSBox Staging changed texture creation process: when hardware is able to handle non-power-of-two textures (basically anything that can run shaders at all), the texture is generated with the same dimensions as emulated resolution instead of closest power-of-two. This, combined with clamping to edge, was done to eliminate tiny black border around output, visible with bilinear-filtered output and accentuated with bicubic interpolation.

Unfortunately, crt-lottes.tweaked.glsl shader didn't like that change for whatever reason: it now cuts bottom and right sides of the output. We don't have any shader experts on our team, so maybe you could tell what went wrong and possibly patch the shader?

Screenshot_20211222_202540

tyrells commented 2 years ago

Hi @GranMinigun. Can you confirm the following for me:

GranMinigun commented 2 years ago

Development version, anything between somewhere in October to 23 December. After that a workaround has been implemented, which reverts behaviour for shaders (https://github.com/dosbox-staging/dosbox-staging/commit/09c07d1a9e0b3099c7685e1459f01a906be001cf). Default configuration, only shader is set. Occurs both in windowed and fullscreen modes. Window size and resolution do not matter. That specific issue occurs only with that shader, as far as I can tell.

tyrells commented 2 years ago

I have updated the base shader to the latest available version, which seems to have fixed the texture issues. Please test and let me know if this works for you.

GranMinigun commented 2 years ago

Yeah, that issue is gone. Thanks.