mirror of
				https://github.com/godotengine/godot.git
				synced 2025-10-31 21:51:22 +00:00 
			
		
		
		
	Fix more issues found by cppcheck.
This commit is contained in:
		
							parent
							
								
									f4b0c7a1ea
								
							
						
					
					
						commit
						de4c97758a
					
				
					 63 changed files with 261 additions and 268 deletions
				
			
		|  | @ -132,9 +132,9 @@ RendererCanvasRender::PolygonID RendererCanvasRenderRD::request_polygon(const Ve | |||
| 	buffers.resize(5); | ||||
| 
 | ||||
| 	{ | ||||
| 		const uint8_t *r = polygon_buffer.ptr(); | ||||
| 		float *fptr = (float *)r; | ||||
| 		uint32_t *uptr = (uint32_t *)r; | ||||
| 		uint8_t *r = polygon_buffer.ptrw(); | ||||
| 		float *fptr = reinterpret_cast<float *>(r); | ||||
| 		uint32_t *uptr = reinterpret_cast<uint32_t *>(r); | ||||
| 		uint32_t base_offset = 0; | ||||
| 		{ //vertices
 | ||||
| 			RD::VertexAttribute vd; | ||||
|  | @ -1833,7 +1833,7 @@ void RendererCanvasRenderRD::occluder_polygon_set_shape(RID p_occluder, const Ve | |||
| 
 | ||||
| 		{ | ||||
| 			uint8_t *vw = geometry.ptrw(); | ||||
| 			float *vwptr = (float *)vw; | ||||
| 			float *vwptr = reinterpret_cast<float *>(vw); | ||||
| 			uint8_t *iw = indices.ptrw(); | ||||
| 			uint16_t *iwptr = (uint16_t *)iw; | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 bruvzg
						bruvzg