修正旧的glBindBuffer错误的用法
This commit is contained in:
parent
d31afd1c45
commit
095951acd5
@ -22,7 +22,7 @@ namespace hgl
|
|||||||
if(!data||size<=0)return(false);
|
if(!data||size<=0)return(false);
|
||||||
|
|
||||||
user_pattern=up;
|
user_pattern=up;
|
||||||
glBindBuffer(buffer_bytes,buffer_index);
|
glBindBuffer(buffer_type,buffer_index);
|
||||||
glBufferData(buffer_type,size,data,user_pattern);
|
glBufferData(buffer_type,size,data,user_pattern);
|
||||||
|
|
||||||
return(true);
|
return(true);
|
||||||
@ -32,7 +32,7 @@ namespace hgl
|
|||||||
{
|
{
|
||||||
if(!data||start<0||size<=0)return(false);
|
if(!data||start<0||size<=0)return(false);
|
||||||
|
|
||||||
glBindBuffer(buffer_bytes,buffer_index);
|
glBindBuffer(buffer_type,buffer_index);
|
||||||
glBufferSubData(buffer_type,start,size,data);
|
glBufferSubData(buffer_type,start,size,data);
|
||||||
|
|
||||||
return(true);
|
return(true);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user