mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-05 19:34:18 -04:00
dx9 need to conform to the new convention
This commit is contained in:
parent
afe7b4b829
commit
a75a5539a3
@ -3499,7 +3499,7 @@ issue_tex_gen(const TexGenAttrib *attrib) {
|
|||||||
* Use the wrap mode from the texture coordinate set at index 1.
|
* Use the wrap mode from the texture coordinate set at index 1.
|
||||||
*/
|
*/
|
||||||
DO_PSTATS_STUFF(_texture_state_pcollector.add_level(1));
|
DO_PSTATS_STUFF(_texture_state_pcollector.add_level(1));
|
||||||
if (attrib->is_off()) {
|
if (attrib->is_empty()) {
|
||||||
|
|
||||||
//enable_texturing(false);
|
//enable_texturing(false);
|
||||||
// reset the texcoordindex lookup to 0
|
// reset the texcoordindex lookup to 0
|
||||||
@ -3507,7 +3507,7 @@ issue_tex_gen(const TexGenAttrib *attrib) {
|
|||||||
_pD3DDevice->SetTextureStageState(0, D3DTSS_TEXTURETRANSFORMFLAGS, 0);
|
_pD3DDevice->SetTextureStageState(0, D3DTSS_TEXTURETRANSFORMFLAGS, 0);
|
||||||
_pD3DDevice->SetTextureStageState( 0, D3DTSS_TEXCOORDINDEX, 0);
|
_pD3DDevice->SetTextureStageState( 0, D3DTSS_TEXCOORDINDEX, 0);
|
||||||
|
|
||||||
} else if (attrib->get_mode() == TexGenAttrib::M_spherical) {
|
} else if (attrib->get_mode(TextureStage::get_default()) == TexGenAttrib::M_sphere_map) {
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
// best reflection on a sphere is achieved by camera space normals in directx
|
// best reflection on a sphere is achieved by camera space normals in directx
|
||||||
|
Loading…
x
Reference in New Issue
Block a user