Use compile time strlen
This commit is contained in:
		
							parent
							
								
									b963c67339
								
							
						
					
					
						commit
						a112529f53
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
					@ -82,8 +82,8 @@ void initGLFunctions()
 | 
				
			||||||
	/* Determine GL version */
 | 
						/* Determine GL version */
 | 
				
			||||||
	const char *ver = (const char*) gl.GetString(GL_VERSION);
 | 
						const char *ver = (const char*) gl.GetString(GL_VERSION);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	const char *glesPrefix = "OpenGL ES ";
 | 
						const char glesPrefix[] = "OpenGL ES ";
 | 
				
			||||||
	size_t glesPrefixN = strlen(glesPrefix);
 | 
						const size_t glesPrefixN = sizeof(glesPrefix)-1;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	bool gles = false;
 | 
						bool gles = false;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue