Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix up some small nits with rust-opengles #50

Merged
merged 3 commits into from Aug 12, 2013
Merged
Changes from 1 commit
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

Update to latest Rust version

  • Loading branch information
sstewartgallus committed Aug 11, 2013
commit af50276275ff71a012200f7c814a27580d837a43
6 gl2.rs
@@ -388,7 +388,7 @@ pub fn attach_shader(program: GLuint, shader: GLuint) {

pub fn bind_attrib_location(program: GLuint, index: GLuint, name: ~str) {
unsafe {
do name.as_c_str |cstr| {
do name.to_c_str().with_ref |cstr| {
glBindAttribLocation(program, index, cstr);
}
}
@@ -703,7 +703,7 @@ pub fn gen_vertex_arrays(n: GLsizei) -> ~[GLuint] {

pub fn get_attrib_location(program: GLuint, name: ~str) -> c_int {
unsafe {
do name.as_c_str |name_bytes| {
do name.to_c_str().with_ref |name_bytes| {
glGetAttribLocation(program, name_bytes as *GLchar)
}
}
@@ -776,7 +776,7 @@ pub fn get_shader_iv(shader: GLuint, pname: GLenum) -> GLint {

pub fn get_uniform_location(program: GLuint, name: ~str) -> c_int {
unsafe {
do name.as_c_str |name_bytes| {
do name.to_c_str().with_ref |name_bytes| {
glGetUniformLocation(program, name_bytes as *GLchar)
}
}
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.