fixed warnings
authorEleni Maria Stea <elene.mst@gmail.com>
Thu, 27 Jul 2017 06:49:04 +0000 (09:49 +0300)
committerEleni Maria Stea <elene.mst@gmail.com>
Thu, 27 Jul 2017 06:49:04 +0000 (09:49 +0300)
src/gfxapi.cc

index d4464f1..58692a3 100644 (file)
@@ -55,6 +55,7 @@ Mesh *gfx_create_mesh()
        case GFX_VK:
                return new MeshVK;
        }
+       return 0;
 }
 Texture *gfx_create_texture()
 {
@@ -64,6 +65,7 @@ Texture *gfx_create_texture()
        case GFX_VK:
                return new TextureVK;
        }
+       return 0;
 }
 
 ShaderProgram *gfx_create_shader_program()
@@ -75,6 +77,7 @@ ShaderProgram *gfx_create_shader_program()
                // return new ShaderProgramVK;
                return 0;
        }
+       return 0;
 }
 
 Shader *gfx_create_shader()
@@ -86,6 +89,7 @@ Shader *gfx_create_shader()
                // return new ShaderVK;
                return 0;
        }
+       return 0;
 }
 
 char *gfx_get_shader_path()
@@ -96,4 +100,5 @@ char *gfx_get_shader_path()
        case GFX_VK:
                return (char *)"vk_shaders";
        }
+       return (char*)"";
 }
\ No newline at end of file