瀏覽代碼

Small stylistic change

TheComet 7 年之前
父節點
當前提交
0b746ec0d8
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/glcontext_glx.cpp

+ 2 - 2
src/glcontext_glx.cpp

@@ -61,8 +61,8 @@ namespace bgfx { namespace gl
 	{
 	{
 		BX_UNUSED(_width, _height);
 		BX_UNUSED(_width, _height);
 
 
-		m_context = (GLXContext)g_platformData.context;
-		m_display = (::Display*)g_platformData.ndt;
+		m_context = static_cast<GLXContext>(g_platformData.context);
+		m_display = static_cast<::Display*>(g_platformData.ndt);
 
 
 		// It's possible the user has provided the window handle, but not
 		// It's possible the user has provided the window handle, but not
 		// the display handle. If this is the case, try opening the default
 		// the display handle. If this is the case, try opening the default