• Zebediah Figura's avatar
    wined3d: Use context->stream_info.position_transformed instead of… · 936b9501
    Zebediah Figura authored
    wined3d: Use context->stream_info.position_transformed instead of context->last_was_rhw in state handlers.
    
    Use of last_was_rhw in these state handlers is, firstly, confusing to read.
    The variable is actually supposed to be set for *this* draw, not the last one,
    and state handlers indeed expect that, but that fact isn't obvious. Reading from
    context->stream_info instead is clearer.
    
    Secondly, since last_was_rhw is set by the STATE_VDECL handler, any other state
    depending on it (including some, though not all, of the sites changed here) thus
    has an implicit state handler ordering assumption. This is, needless to say,
    fragile. context->stream_info is computed before state handlers, so that
    dependency is a bit less fragile.
    936b9501
Name
Last commit
Last update
dlls Loading commit data...
documentation Loading commit data...
fonts Loading commit data...
include Loading commit data...
libs Loading commit data...
loader Loading commit data...
nls Loading commit data...
po Loading commit data...
programs Loading commit data...
server Loading commit data...
tools Loading commit data...
.editorconfig Loading commit data...
.gitlab-ci.yml Loading commit data...
.mailmap Loading commit data...
ANNOUNCE Loading commit data...
AUTHORS Loading commit data...
COPYING.LIB Loading commit data...
LICENSE Loading commit data...
LICENSE.OLD Loading commit data...
MAINTAINERS Loading commit data...
README Loading commit data...
VERSION Loading commit data...
aclocal.m4 Loading commit data...
configure Loading commit data...
configure.ac Loading commit data...