parent
							
								
									3c6bc765c6
								
							
						
					
					
						commit
						1c2dc115b8
					
				
					 2 changed files with 4 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -119,7 +119,7 @@ GLState::GLState(const Config &conf)
 | 
			
		|||
	blendMode.init(BlendNormal);
 | 
			
		||||
	blend.init(true);
 | 
			
		||||
	scissorTest.init(false);
 | 
			
		||||
	scissorBox.init(IntRect(0, 0, 640, 480));
 | 
			
		||||
	scissorBox.init(IntRect());
 | 
			
		||||
	program.init(0);
 | 
			
		||||
 | 
			
		||||
	if (conf.maxTextureSize > 0)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -152,6 +152,7 @@ public:
 | 
			
		|||
		pp.startRender();
 | 
			
		||||
 | 
			
		||||
		glState.viewport.set(IntRect(0, 0, w, h));
 | 
			
		||||
		glState.scissorBox.pushSet(IntRect(0, 0, w, h));
 | 
			
		||||
 | 
			
		||||
		FBO::clear();
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -166,6 +167,8 @@ public:
 | 
			
		|||
 | 
			
		||||
			brightnessQuad.draw();
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		glState.scissorBox.pop();
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	void requestViewportRender(const Vec4 &c, const Vec4 &f, const Vec4 &t)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue