mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 05:40:04 +00:00 
			
		
		
		
	gl_rasterizer: ignore mipmap setting for cubemap before we implements it
This commit is contained in:
		
							parent
							
								
									d7196b5573
								
							
						
					
					
						commit
						777af04f4a
					
				
					 2 changed files with 18 additions and 0 deletions
				
			
		|  | @ -1583,6 +1583,21 @@ void RasterizerOpenGL::SamplerInfo::SyncWithConfig( | ||||||
|                             PicaToGL::TextureMinFilterMode(min_filter, mip_filter)); |                             PicaToGL::TextureMinFilterMode(min_filter, mip_filter)); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|  |     // TODO(wwylele): remove this block once mipmap for cube is implemented
 | ||||||
|  |     bool new_supress_mipmap_for_cube = | ||||||
|  |         config.type == Pica::TexturingRegs::TextureConfig::TextureCube; | ||||||
|  |     if (supress_mipmap_for_cube != new_supress_mipmap_for_cube) { | ||||||
|  |         supress_mipmap_for_cube = new_supress_mipmap_for_cube; | ||||||
|  |         if (new_supress_mipmap_for_cube) { | ||||||
|  |             // HACK: use mag filter converter for min filter because they are the same anyway
 | ||||||
|  |             glSamplerParameteri(s, GL_TEXTURE_MIN_FILTER, | ||||||
|  |                                 PicaToGL::TextureMagFilterMode(min_filter)); | ||||||
|  |         } else { | ||||||
|  |             glSamplerParameteri(s, GL_TEXTURE_MIN_FILTER, | ||||||
|  |                                 PicaToGL::TextureMinFilterMode(min_filter, mip_filter)); | ||||||
|  |         } | ||||||
|  |     } | ||||||
|  | 
 | ||||||
|     if (wrap_s != config.wrap_s) { |     if (wrap_s != config.wrap_s) { | ||||||
|         wrap_s = config.wrap_s; |         wrap_s = config.wrap_s; | ||||||
|         glSamplerParameteri(s, GL_TEXTURE_WRAP_S, PicaToGL::WrapMode(wrap_s)); |         glSamplerParameteri(s, GL_TEXTURE_WRAP_S, PicaToGL::WrapMode(wrap_s)); | ||||||
|  |  | ||||||
|  | @ -76,6 +76,9 @@ private: | ||||||
|         u32 lod_min; |         u32 lod_min; | ||||||
|         u32 lod_max; |         u32 lod_max; | ||||||
|         s32 lod_bias; |         s32 lod_bias; | ||||||
|  | 
 | ||||||
|  |         // TODO(wwylele): remove this once mipmap for cube is implemented
 | ||||||
|  |         bool supress_mipmap_for_cube = false; | ||||||
|     }; |     }; | ||||||
| 
 | 
 | ||||||
|     /// Structure that the hardware rendered vertices are composed of
 |     /// Structure that the hardware rendered vertices are composed of
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue