Most likely you should instead put:

```
if (diff)
	gstate_c.framebufChanged = true;
```

On `GE_CMD_SCISSOR1` and such (anything you're using to compute the framebuf.)

Anyway, since you never set it false, `} else if ( gstate_c.framebufChanged ) { ` just basically sets it to 512 always.  If you're wanting to remove these things I guess you should remove them.  The code just looks hacky and wrong as is imho.

-[Unknown]