Translate VAOs to DSA
This commit is contained in:
+2
-2
@@ -5,8 +5,8 @@ import Foreign.Storable
|
||||
import Graphics.GL.Core45
|
||||
|
||||
|
||||
mglCreateSingle :: (Ptr GLuint -> IO ()) -> IO GLuint
|
||||
mglCreateSingle :: (GLsizei -> Ptr GLuint -> IO ()) -> IO GLuint
|
||||
mglCreateSingle f = do
|
||||
alloca $ \nameptr -> do
|
||||
f nameptr
|
||||
f 1 nameptr
|
||||
peek nameptr
|
||||
|
||||
Reference in New Issue
Block a user