public int genShader(int shaderType,String source)
	{
		int shader = 0;
    	try {
    		
	        shader = GL20.glCreateShader(shaderType);
	        
	        if(shader == 0)
	        	return 0;
	        
	        GL20.glShaderSource(shader, source);
	        GL20.glCompileShader(shader);
	        if (GL20.glGetShaderi(shader, GL20.GL_COMPILE_STATUS) == GL11.GL_FALSE)
	            throw new RuntimeException("Error creating shader: ");
	        Work = true;
	        return shader;
    	}
    	catch(Exception exc) {
    		System.err.println(GL20.glGetShaderInfoLog(shader,GL20.glGetShaderi(shader,GL20.GL_INFO_LOG_LENGTH)));
    		System.err.println(source);
    		GL20.glDeleteShader(shader);
    	}
		return shader;
	}