summaryrefslogtreecommitdiff
path: root/drivers/gles2
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2019-01-23 10:31:05 +0100
committerRémi Verschelde <rverschelde@gmail.com>2019-01-23 10:31:05 +0100
commit2a45b298c18cf68a629a36179b1fd6136546ee01 (patch)
tree66a01ed411e4bcc756b46e87b190c2b39ee536e7 /drivers/gles2
parent6f704c338aa7448a65ced554804ae568063f35eb (diff)
Remove unused method in RasterizerStorageGLES2
Added in 4f4e46edd539b0c26a6b086aa19c303b10de66b1 but not used in the end.
Diffstat (limited to 'drivers/gles2')
-rw-r--r--drivers/gles2/rasterizer_storage_gles2.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/drivers/gles2/rasterizer_storage_gles2.cpp b/drivers/gles2/rasterizer_storage_gles2.cpp
index c9c4cd3892..22c05d9d77 100644
--- a/drivers/gles2/rasterizer_storage_gles2.cpp
+++ b/drivers/gles2/rasterizer_storage_gles2.cpp
@@ -1715,15 +1715,6 @@ RID RasterizerStorageGLES2::mesh_create() {
return mesh_owner.make_rid(mesh);
}
-static float Float16ToFloat(short fltInt16) {
- int fltInt32 = ((fltInt16 & 0x8000) << 16);
- fltInt32 |= ((fltInt16 & 0x7fff) << 13) + 0x38000000;
-
- float fRet;
- memcpy(&fRet, &fltInt32, sizeof(float));
- return fRet;
-}
-
static PoolVector<uint8_t> _unpack_half_floats(const PoolVector<uint8_t> &array, uint32_t &format, int p_vertices) {
uint32_t p_format = format;