Skip to content

Commit

Permalink
Auto merge of #30 - pcwalton:retain-release-pixel-format, r=jdm
Browse files Browse the repository at this point in the history
Add bindings to `CGLRetainPixelFormat` and `CGLReleasePixelFormat`

r? @jdm

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/cgl-rs/30)
<!-- Reviewable:end -->
  • Loading branch information
bors-servo committed Sep 11, 2019
2 parents 115c93d + 0d83c84 commit 980dd50
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/cgl.rs
Expand Up @@ -159,6 +159,9 @@ extern {
attrib: CGLPixelFormatAttribute,
value: *mut GLint) -> CGLError;
pub fn CGLDestroyPixelFormat(pix: CGLPixelFormatObj) -> CGLError;
pub fn CGLReleasePixelFormat(pix: CGLPixelFormatObj);
pub fn CGLRetainPixelFormat(pix: CGLPixelFormatObj) -> CGLPixelFormatObj;
pub fn CGLGetPixelFormatRetainCount(pix: CGLPixelFormatObj) -> GLuint;

// Context functions
pub fn CGLCreateContext(pix: CGLPixelFormatObj, share: CGLContextObj, ctx: *mut CGLContextObj) ->
Expand Down

0 comments on commit 980dd50

Please sign in to comment.