|
@@ -256,6 +256,7 @@ rebuild_bitplanes() {
|
|
|
for (int i=0; i<count_textures(); i++) {
|
|
for (int i=0; i<count_textures(); i++) {
|
|
|
if (get_rtm_mode(i) == RTM_bind_or_copy) {
|
|
if (get_rtm_mode(i) == RTM_bind_or_copy) {
|
|
|
if ((get_texture(i)->get_format() != Texture::F_depth_stencil)&&
|
|
if ((get_texture(i)->get_format() != Texture::F_depth_stencil)&&
|
|
|
|
|
+ (get_texture(i)->get_format() != Texture::F_depth_component)&&
|
|
|
(color_tex_index < 0)) {
|
|
(color_tex_index < 0)) {
|
|
|
color_tex_index = i;
|
|
color_tex_index = i;
|
|
|
} else {
|
|
} else {
|
|
@@ -420,6 +421,7 @@ select_cube_map(int cube_map_index) {
|
|
|
for (int i=0; i<count_textures(); i++) {
|
|
for (int i=0; i<count_textures(); i++) {
|
|
|
if (get_rtm_mode(i) == RTM_bind_or_copy) {
|
|
if (get_rtm_mode(i) == RTM_bind_or_copy) {
|
|
|
if ((get_texture(i)->get_format() != Texture::F_depth_stencil)&&
|
|
if ((get_texture(i)->get_format() != Texture::F_depth_stencil)&&
|
|
|
|
|
+ (get_texture(i)->get_format() != Texture::F_depth_component)&&
|
|
|
(color_tex_index < 0)) {
|
|
(color_tex_index < 0)) {
|
|
|
color_tex_index = i;
|
|
color_tex_index = i;
|
|
|
} else {
|
|
} else {
|