mirror of
				https://github.com/thunderbrewhq/thunderbrew
				synced 2025-10-31 00:06:05 +03:00 
			
		
		
		
	chore(gx): store software cursor workaround
This commit is contained in:
		
							parent
							
								
									6191acb291
								
							
						
					
					
						commit
						f22485952b
					
				| @ -333,7 +333,7 @@ void CGxDevice::ICursorDraw() { | ||||
|     // Turn off everything
 | ||||
|     GxRsSet(GxRs_PolygonOffset, 0); | ||||
|     GxRsSet(GxRs_NormalizeNormals, 0); | ||||
|     GxRsSet(GxRs_BlendingMode, 1); | ||||
|     GxRsSet(GxRs_BlendingMode, GxBlend_AlphaKey); | ||||
|     GxRsSetAlphaRef(); | ||||
|     GxRsSet(GxRs_Lighting, 0); | ||||
|     GxRsSet(GxRs_Fog, 0); | ||||
| @ -355,6 +355,9 @@ void CGxDevice::ICursorDraw() { | ||||
|     float cursorDepth = 1.0f; | ||||
| 
 | ||||
|     C44Matrix projection; | ||||
| 	// Workaround for software cursor
 | ||||
| 	// C44Matrix projection(2, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0.002, 0, -1, -1, 0, 1);
 | ||||
|     // this->XformSetProjection(projection);
 | ||||
| 
 | ||||
|     if (!this->StereoEnabled() || | ||||
|         (CGxDevice::s_uiVertexShader == 0 || !s_uiVertexShader->Valid()) || | ||||
|  | ||||
| @ -1578,7 +1578,7 @@ GLTexture* GLSDLDevice::CreateTextureCubeMap(uint32_t size, uint32_t numMipMap, | ||||
| } | ||||
| 
 | ||||
| void GLSDLDevice::Draw(GLEnum primitive, uint32_t a3, uint32_t a4) { | ||||
|     // TODO
 | ||||
|     this->GLSDLDraw(primitive, a3, a3 + a4, 0, 0, 0); | ||||
| } | ||||
| 
 | ||||
| void GLSDLDevice::DrawIndexed(GLEnum primitive, uint32_t a3, uint32_t a4, uint32_t a5, uint32_t a6, uint32_t count) { | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 VDm
						VDm