mirror of
https://github.com/JetSetIlly/Gopher2600.git
synced 2025-04-02 11:02:17 -04:00
change of CRT framebuffer caused visual artefacts
the solution in this commit doesn't seem ideal but it works well enough
This commit is contained in:
parent
265020e1a6
commit
9cd255202f
1 changed files with 6 additions and 2 deletions
|
@ -194,9 +194,13 @@ func (sh *crtSequencer) process(env shaderEnvironment, moreProcessing bool, numS
|
|||
phosphorPasses := 1
|
||||
|
||||
// make sure our framebuffer is correct. if framebuffer has changed then
|
||||
// alter the phosphor/fade options
|
||||
// don't continue with processing
|
||||
//
|
||||
// this prevents weird artefacts appearing on the screen - the single frame
|
||||
// of not drawing the screen is preferable to the artefacts, which can be
|
||||
// confusing
|
||||
if sh.seq.Setup(env.width, env.height) {
|
||||
phosphorPasses = 3
|
||||
return env.srcTextureID
|
||||
}
|
||||
|
||||
// sharpen image
|
||||
|
|
Loading…
Add table
Reference in a new issue