GLState: Constify
This commit is contained in:
		
							parent
							
								
									725af97e7b
								
							
						
					
					
						commit
						b4bca7ea3b
					
				
					 2 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
					@ -43,7 +43,7 @@ void GLScissorBox::apply(const IntRect &value)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void GLScissorBox::setIntersect(const IntRect &value)
 | 
					void GLScissorBox::setIntersect(const IntRect &value)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	IntRect ¤t = get();
 | 
						const IntRect ¤t = get();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	SDL_Rect r1 = { current.x, current.y, current.w, current.h };
 | 
						SDL_Rect r1 = { current.x, current.y, current.w, current.h };
 | 
				
			||||||
	SDL_Rect r2 = { value.x,   value.y,   value.w,   value.h };
 | 
						SDL_Rect r2 = { value.x,   value.y,   value.w,   value.h };
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -43,7 +43,7 @@ struct GLProperty
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	void push() { stack.push(current); }
 | 
						void push() { stack.push(current); }
 | 
				
			||||||
	void pop()  { set(stack.top()); stack.pop(); }
 | 
						void pop()  { set(stack.top()); stack.pop(); }
 | 
				
			||||||
	T &get()    { return current; }
 | 
						const T &get()    { return current; }
 | 
				
			||||||
	void set(const T &value)
 | 
						void set(const T &value)
 | 
				
			||||||
	{
 | 
						{
 | 
				
			||||||
		if (value == current)
 | 
							if (value == current)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue