diff options
author | chai <chaifix@163.com> | 2018-09-07 13:30:44 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2018-09-07 13:30:44 +0800 |
commit | e72188433348c270a54879da9f086f1b527b580f (patch) | |
tree | b2cb92b37579c6f9cff77f52fc591426eb2d8286 /src/libjin/Graphics/Texture.cpp | |
parent | 28ca1f570d417671904a25c2a9c589fdb1eb7a03 (diff) |
*update
Diffstat (limited to 'src/libjin/Graphics/Texture.cpp')
-rw-r--r-- | src/libjin/Graphics/Texture.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libjin/Graphics/Texture.cpp b/src/libjin/Graphics/Texture.cpp index 3ef3e7e..2095af4 100644 --- a/src/libjin/Graphics/Texture.cpp +++ b/src/libjin/Graphics/Texture.cpp @@ -17,10 +17,10 @@ namespace graphics { Texture* tex = new Texture(); const Color* pixels = bitmap->getPixels(); - tex->size.x = bitmap->getWidth(); - tex->size.y = bitmap->getHeight(); - unsigned int w = tex->size.x; - unsigned int h = tex->size.y; + tex->size.w = bitmap->getWidth(); + tex->size.h = bitmap->getHeight(); + unsigned int w = tex->size.w; + unsigned int h = tex->size.h; glGenTextures(1, &tex->texture); glBindTexture(GL_TEXTURE_2D, tex->texture); |