VirtualBox

Changeset 82711 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
Jan 10, 2020 11:21:23 AM (5 years ago)
Author:
vboxsync
Message:

3D: Fix regression caused by r135612 and 135630, bugref:9613

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Graphics/shaderlib/shader.c

    r82704 r82711  
    438438        default:
    439439            TRACE("Not recording register of type %#x and idx %u\n", reg->type, reg->idx);
    440             return E_INVALIDARG;
     440            break;
    441441    }
    442442
     
    685685
    686686                hr = shader_record_register_usage(shader, reg_maps, &dst_param.reg, shader_version.type);
    687                 AssertReturn(FAILED(hr), hr);
     687                AssertReturn(SUCCEEDED(hr), hr);
    688688
    689689                /* WINED3DSPR_TEXCRDOUT is the same as WINED3DSPR_OUTPUT. _OUTPUT can be > MAX_REG_TEXCRD and
     
    743743                {
    744744                    unsigned int sampler_idx;
    745                     AssertReturn(shader_version.major == 1, E_INVALIDARG);
    746745
    747746                    /* Fake sampler usage, only set reserved bit and type. */
     
    793792
    794793                hr = shader_record_register_usage(shader, reg_maps, &src_param.reg, shader_version.type);
    795                 AssertReturn(FAILED(hr), hr);
     794                AssertReturn(SUCCEEDED(hr), hr);
    796795
    797796                while (count)
     
    799798                    ++src_param.reg.idx;
    800799                    hr = shader_record_register_usage(shader, reg_maps, &src_param.reg, shader_version.type);
    801                     AssertReturn(FAILED(hr), hr);
     800                    AssertReturn(SUCCEEDED(hr), hr);
    802801                    --count;
    803802                }
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette