mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 20:30:05 +00:00 
			
		
		
		
	Fix buffer regeneration error
This commit is contained in:
		
							parent
							
								
									78a16b6a99
								
							
						
					
					
						commit
						055bdecd33
					
				
					 1 changed files with 1 additions and 4 deletions
				
			
		|  | @ -124,7 +124,7 @@ void RadarProductLayer::Initialize() | |||
|    gl.glGenVertexArrays(1, &p->vao_); | ||||
| 
 | ||||
|    // Generate vertex buffer objects
 | ||||
|    gl.glGenBuffers(2, p->vbo_.data()); | ||||
|    gl.glGenBuffers(3, p->vbo_.data()); | ||||
| 
 | ||||
|    // Update radar sweep
 | ||||
|    UpdateSweep(); | ||||
|  | @ -160,9 +160,6 @@ void RadarProductLayer::UpdateSweep() | |||
|    // Bind a vertex array object
 | ||||
|    gl.glBindVertexArray(p->vao_); | ||||
| 
 | ||||
|    // Generate vertex buffer objects
 | ||||
|    gl.glGenBuffers(3, p->vbo_.data()); | ||||
| 
 | ||||
|    // Buffer vertices
 | ||||
|    gl.glBindBuffer(GL_ARRAY_BUFFER, p->vbo_[0]); | ||||
|    timer.start(); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat