X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fbuffer.cpp;h=38a690287b96d3bcc506b81bc184700fa9b35521;hp=100e4b2ea40a08b4858b41abf043f7b4d84c11eb;hb=e19309340e90ee881e9cb2f8b7c33a5b89681aa6;hpb=e226ee890690e08cfa6f89a9a64e8a338db63822 diff --git a/source/buffer.cpp b/source/buffer.cpp index 100e4b2e..38a69028 100644 --- a/source/buffer.cpp +++ b/source/buffer.cpp @@ -98,11 +98,13 @@ void *Buffer::map(BufferAccess access) } else if(ARB_direct_state_access) return glMapNamedBuffer(id, access); - else + else if(OES_mapbuffer) { BindRestore _bind(this, type); return glMapBuffer(type, access); } + else + throw invalid_operation("Buffer::map"); } bool Buffer::unmap()