mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-09 08:21:29 +12:00
gl: Fix warnings and enable trat warning as error.
This commit is contained in:
parent
38531459df
commit
69272edba6
8 changed files with 25 additions and 17 deletions
|
@ -200,7 +200,7 @@ void GLVertexProgram::Compile()
|
|||
id = glCreateShader(GL_VERTEX_SHADER);
|
||||
|
||||
const char* str = shader.c_str();
|
||||
const int strlen = shader.length();
|
||||
const int strlen = gsl::narrow<int>(shader.length());
|
||||
|
||||
glShaderSource(id, 1, &str, &strlen);
|
||||
glCompileShader(id);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue