mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 19:08:55 -04:00
minor code cleanup
This commit is contained in:
parent
c266847a06
commit
8e33595bd0
@ -252,14 +252,14 @@ select_cube_map(int cube_map_index) {
|
|||||||
render_target_index = 0;
|
render_target_index = 0;
|
||||||
dx_texture_context9 = _dx_texture_context9;
|
dx_texture_context9 = _dx_texture_context9;
|
||||||
|
|
||||||
// render to cubemap face
|
|
||||||
IDirect3DCubeTexture9 *direct_3d_cube_texture;
|
|
||||||
|
|
||||||
if (_direct_3d_surface) {
|
if (_direct_3d_surface) {
|
||||||
_direct_3d_surface -> Release ( );
|
_direct_3d_surface -> Release ( );
|
||||||
_direct_3d_surface = NULL;
|
_direct_3d_surface = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// render to cubemap face
|
||||||
|
IDirect3DCubeTexture9 *direct_3d_cube_texture;
|
||||||
|
|
||||||
direct_3d_cube_texture = dx_texture_context9 -> _d3d_cube_texture;
|
direct_3d_cube_texture = dx_texture_context9 -> _d3d_cube_texture;
|
||||||
if (direct_3d_cube_texture) {
|
if (direct_3d_cube_texture) {
|
||||||
if (_cube_map_index >= 0 && _cube_map_index < 6) {
|
if (_cube_map_index >= 0 && _cube_map_index < 6) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user